Is it possible to have auto-indent be invoked only for the line immediately below the indented line? I.e. is it possible to have auto-indent only happen if you hit ENTER on a line that's indented?
They way auto-indent works for me (with version 5.0.3) is to auto-indent if the last text was indented, regardless of how far up in the file that text is. Say for example I have an indented line. I go 10 lines down from this line, so that there's nothing but white space for 10 lines. On this 10th line the cursor all the way to the left margin since I haven't entered any text. I now hit ENTER and the cursor jumps down a line (as it should) and auto-indents. It's this auto-indentation I'd like to stop.
My needs are very simple. All I want is auto-indentation for the line immediately following an indented line. Can Notepad++ do this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I agree that this would be a nice feature. At least it should maintain the same indentation as the previous line, including if the previous line was only whitespace, in which case it would just copy the whitespace from that line to the new line.
It gets rather annoying when I'm writing up python scripts and I finish one function and want to start a new one, and I hit <enter> <backspace> <enter> (should produce line with same indentation as previous line, but because it maintains the indentation of the previous line without whitespace I have to hit another) <backspace>
I think that the cases where the current behavior is more convenient are much fewer where this suggested behavior is more convenient (at least in my usage, anyway).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to have auto-indent be invoked only for the line immediately below the indented line? I.e. is it possible to have auto-indent only happen if you hit ENTER on a line that's indented?
They way auto-indent works for me (with version 5.0.3) is to auto-indent if the last text was indented, regardless of how far up in the file that text is. Say for example I have an indented line. I go 10 lines down from this line, so that there's nothing but white space for 10 lines. On this 10th line the cursor all the way to the left margin since I haven't entered any text. I now hit ENTER and the cursor jumps down a line (as it should) and auto-indents. It's this auto-indentation I'd like to stop.
My needs are very simple. All I want is auto-indentation for the line immediately following an indented line. Can Notepad++ do this?
I agree that this would be a nice feature. At least it should maintain the same indentation as the previous line, including if the previous line was only whitespace, in which case it would just copy the whitespace from that line to the new line.
It gets rather annoying when I'm writing up python scripts and I finish one function and want to start a new one, and I hit <enter> <backspace> <enter> (should produce line with same indentation as previous line, but because it maintains the indentation of the previous line without whitespace I have to hit another) <backspace>
I think that the cases where the current behavior is more convenient are much fewer where this suggested behavior is more convenient (at least in my usage, anyway).