Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ Tab Settings [closed]

See Convert tabs to spaces in Notepad++


I have started on a personal quest to learn python and after following a Google lecture online the instructor advocated changing your tabs to spaces.

I have browsed around in notepad++ and gone to the language settings and checked the change tabs to spaces text box but it is not working.

like image 698
ssirovi Avatar asked Jul 18 '11 03:07

ssirovi


People also ask

How do you reopen a closed tab in notepad?

To reopen a closed tab in Notepad++ you press ALT + F & 1 .

How do I view tabs in notepad?

To "find" a Tab, highlight a Tab, copy it (ctrl+C), then paste it into the "find" box: ctrl+v. (f) Use FORMAT= or MFORMS= to pick up every other column.


2 Answers

There are two places in the language settings that might be controlling tabs and spaces in Python. Check that the "default" language is set to spaces, and then check that "Python" is set to "Use default value. It should look like this:

enter image description here

Personally, I prefer using tabs. I find it's easier to make sure everything lines up correctly. Others disagree. :)

Also, to help you convert your files from tabs to spaces (or back!), have a look at the menu item TextFX -> TextFX Edit -> Leading space to tabs or tab to spaces. It makes it easy to convert back and forth between the two.

Good luck!

like image 177
Chris Avatar answered Oct 15 '22 21:10

Chris


What version of Notepad++ are you using?

In 5.9.2, in Preferences, under the Languages Menu/Tab Settings tab, the "replace by space" checkbox should do it.

If you've done this -- are you sure it isn't working? If you go to View > Show Symbol > Show White Space and TAB, you can see if the tabs are being printed as tabs (arrows, →) or spaces (small dots, ·).

like image 1
Cho Naseo Avatar answered Oct 15 '22 21:10

Cho Naseo