Bug 163419 - Eclipse should not add indentation to empty lines
Summary: Eclipse should not add indentation to empty lines
Status: RESOLVED DUPLICATE of bug 163418
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 19:34 EST by Max Gilead CLA
Modified: 2006-11-03 19:49 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 Max Gilead CLA 2006-11-03 19:34:48 EST
Eclipse should not add indentation to empty lines when increasing code indentation. It unnecessarily makes patches bigger and harder to read.

For example, when pressing Tab on this code (| marks end of line):

foo();|
|
bar();|

Eclipse will produce:

    foo();|
    |
    bar();|

while cleaner code would be:

    foo();|
|
    bar();|
Comment 1 Max Gilead CLA 2006-11-03 19:49:13 EST
Whoops, clicking 'Commit' button again after stopped transfer is bad idea...

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