Auto-indentation [message #120602] |
Tue, 29 November 2005 15:51  |
Eclipse User |
|
|
|
Originally posted by: babootcm-eclipsenewcomer.yahoo.com
Hello,
I've searched for information on the topic of how the Eclipse editor
handles auto-indentation and have not been able to find the information
for which I'm looking with the key words I'm using. I would like for any
white space to be removed from an empty line at the point I press a
carriage return. For example (dots represent white space).
1 public void example() {
2 ....final String hello = "Hello, World.";
3 ....
4 ....System.out.println(hello);
5 }
In Eclipse, I end up with white space in line 3. I would like for the
white space to be removed when I press the carriage return for to get to
line 4. That is:
1 public void example() {
2 ....final String hello = "Hello, World.";
3
4 ....System.out.println(hello);
5 }
I'm aware the one can use formatting and Ctrl+Shift+F, but that's an extra
step one has to remember and I would like for it to happen by default. I'm
in an environment where Eclipse is sometimes used as well as shell and VIM
and the extra white space throws off some navigation features of VIM
(e.g., } to move to the next paragraph or empty line). VIM removes this
white space by default.
Thanks in advance for any help,
Matt
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 8.43390 seconds