Notepad++ Tab Settings [closed]
Asked Answered
F

2

19

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.

Fabiolafabiolas answered 18/7, 2011 at 3:12 Comment(4)
I suppose this will be applied to subsequent code addition & not to the existing code.Hebetude
I see this question has been closed as "off topic". Is there a preferred site for discussing programming-related problems with popular programming editors? (It would be useful if the close message stated where such a forum can be found. There are SO many StackExchange sites these days...) Thanks!Outwit
While I think that discussing programming tools can be ontopic on SO, I think this particular question belongs to superuser (superuser.com)Cush
More than off topic, this question is duplicate of #455537Traction
O
34

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!

Outwit answered 18/7, 2011 at 3:26 Comment(2)
thanks for the help, in fact thanks to everyone for there quick and helpful repliesFabiolafabiolas
You might find this thread on "tabs vs spaces" is interesting: #120062Outwit
R
1

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

Reparation answered 18/7, 2011 at 3:26 Comment(1)
In Notepad++ how can I make a tab be displayed as an arrow instead of as 4 dots? Currently my tabs display as 4 dots.Aulic

© 2022 - 2024 — McMap. All rights reserved.