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.
To reopen a closed tab in Notepad++ you press ALT + F & 1 .
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.
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, ·).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With