SourceForge.net
2007-05-16 17:03:42 UTC
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4315902
By: nobody
I edit some files that do indentation with spaces some files that do indentation
with tabs. I prefer tabs for new files that I create, so I set Notepad++ to
use tabs.
If I'm in a file that uses spaces for indentation, and I hit enter at the end
of a line I get a new line that is auto indented. However, Notepad++ does not
respect the indentation style of the previous line. For example, if the line
had an 8 space indentation, then the new line is given a two tab indentation.
I would prefer for auto indent to work like this:
1.) User hits enter at the end of a line.
2.) The indention string (any combination of spaces and tabs) is found on the
line.
3.) A new line is created that starts with the exact indention string from step
2.
Also if you hit enter on an empty line, then the next line should be empty.
Notepad++ shouldn't search for the previous non-empty line and use that. That
behavior is quite unintuitive. It should at least be optional.
Is there an easy way to do this without creating my own personal fork of Notepad++.
I really don't want to do that.
Thanks,
Josh
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754
https://sourceforge.net/forum/message.php?msg_id=4315902
By: nobody
I edit some files that do indentation with spaces some files that do indentation
with tabs. I prefer tabs for new files that I create, so I set Notepad++ to
use tabs.
If I'm in a file that uses spaces for indentation, and I hit enter at the end
of a line I get a new line that is auto indented. However, Notepad++ does not
respect the indentation style of the previous line. For example, if the line
had an 8 space indentation, then the new line is given a two tab indentation.
I would prefer for auto indent to work like this:
1.) User hits enter at the end of a line.
2.) The indention string (any combination of spaces and tabs) is found on the
line.
3.) A new line is created that starts with the exact indention string from step
2.
Also if you hit enter on an empty line, then the next line should be empty.
Notepad++ shouldn't search for the previous non-empty line and use that. That
behavior is quite unintuitive. It should at least be optional.
Is there an easy way to do this without creating my own personal fork of Notepad++.
I really don't want to do that.
Thanks,
Josh
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754