Notepad++ Tab Settings

ssirovi picture ssirovi · Jul 18, 2011 · Viewed 22k times · Source

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.

Answer

Chris picture Chris · Jul 18, 2011

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!