Notepad++ Tab Settings [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionSee 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.
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:
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, ·).
精彩评论