Bug 119690 - Request for editor to remove white space from empty line from auto indentation
Summary: Request for editor to remove white space from empty line from auto indentation
Status: RESOLVED DUPLICATE of bug 85883
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 13:04 EST by Matt Zimmer CLA
Modified: 2005-12-08 05:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Zimmer CLA 2005-12-07 13:04:35 EST
Posted question at eclipse newcomer ( http://www.eclipse.org/newsportal/article.php?id=5982&group=eclipse.newcomer#5982 ). I couldn't find an existing request for this behavior.

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).
Comment 1 Dani Megert CLA 2005-12-08 05:16:31 EST

*** This bug has been marked as a duplicate of 85883 ***