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

Summary: indentation engine and spaces within lines of code
Product: editor Reporter: gautiery <gautiery>
Component: Formatting & IndentationAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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.



Thanks
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 ***