This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153271 - indentation engine and spaces within lines of code
Summary: indentation engine and spaces within lines of code
Status: RESOLVED DUPLICATE of bug 128077
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
Depends on:
Reported: 2008-11-16 09:20 UTC by gautiery
Modified: 2008-11-18 14:10 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description gautiery 2008-11-16 09:20:13 UTC
In my company the coding standards encourage the use of space to stress similarities between chunks of code

for instance we prefer something like this :
aaaabbb    =  fun("aaaabbb"   ,   100,  1000);
aaaa       =  fun("aaaa"      ,     0, 10000);
aaaacccccc =  fun("aaaacccccc", 10000,   100);

to the result after indentation with netbeans :

aaaabbb = fun("aaaabbb", 100, 1000);
aaaa = fun("aaaa", 0, 10000);
aaaacccccc = fun("aaaacccccc", 10000, 100);

Indenting some old code with netbeans  destroys some of the visual structure of the code. Whether you like to put space
anywhere or you don't , netbeans should allow the user to put "meaningful" spaces within lines of code. A check box to
enable/disable this feature in the identation tab would be great.

Comment 1 Jiri Prox 2008-11-18 11:34:45 UTC
This is rather an enhancement than a defect
Comment 2 Petr Dvorak 2008-11-18 14:10:57 UTC
Yes - it is this is often requested feature, IMO it is a duplicate of issue 128077 ("Indent lines in groups to be easily
read"). Please help to speed up the resolution of this issue by adding another vote to that one (it already has 8 votes)...

*** This issue has been marked as a duplicate of 128077 ***