Notepad++ Tab Settings [closed] Notepad++ Tab Settings [closed] python python

Notepad++ Tab Settings [closed]


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!


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, ·).