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