How to avoid Insertion of tab
When you start a new line in NP++ the new line is aligned with the previous.
However, instead of inserting the same leading blanks as the previous line, a tab is inserted if the number of blanks equals the tab setting.
This is highly unwanted in my opinion.
How can I switch this behavior off?
Helps if I read then entire post :)
Settings > Preferences > MISC.and turn off auto-indent.
to prevent that tab instead space gets inserted goto
Settings -> Preferences -> Tab Settings and check Replace by Space
In that case all tabs are always replaced by spaces.
I just want that the indent of the previous line is kept as it is:
either tab or spaces.
afaik this isn’t possible yet.
May I ask you why it is important for you to have this feature?
At the moment I don’t see any benefit, which doesn’t mean there
isn’t one, maybe you can enlight me?
My default settings are to keep tabs as tabs, but I have some file types (eg Perl scripts) set to replace tabs with spaces.
I often create new small file Perl script files. I just type the entire script into a new and empty buffer, then do a Save as with a .pl extension. As I type I enter spaces for indents. After hitting enter, the newline is indented with tabs. As I want spaces to indent these Perl files I have to use the Edit => Blank operations => Tab to spaces command on the whole file just before or just after the Save as.
It would be more convenient for me if the auto indent copied the leading white space of the previous line. The current behaviour is to use the default tab settings to produce an indent of the same size as the line above.
This behaviour is a minor inconvenience to me. I had not considered it worthy of a feature request, but you asked for why it may be useful.
With a quick Google search I ran across the TabIndentSpaceAlign plugin (available in the PluginManager).
I really want this this feature too.
I use visual stupid, and notepad++ to store visual studio data notes when I am debugging - namely things like call stacks…
These look like:
Now I’d like to go back to the margin after a blank space “^\n$” or whatever the silly windows newline is this week, but instead it starts off with a tab at the start, so when i next paste the call stack i get:
[unwanted tab] > Function A
I don’t want this, i want:
So that I don’t have to go back through every single tab that your editor inserted.
I love notepad++, but this is soo irritating because this comes up for me 20-30 times a day. I really think this would make your editor soo much less irritating to use.
I really wanted this feature too.
So I compiled Notepad++ from sources and modified the behavior. With a few other tweaks I wanted.
On the other hand the base version I am using is still 6.7.8