on 09-23-2009 9:58 AM
Hi experts
how can I customize the code formatter (Windows -> Preferences -> Java -> Code Formatter) so that empty spaces are not removed?
I want to format the code like this:
e.g.
int a = 1;
int text = 2;
ind ccSomeThingElse = 3;
but the code fomatter do this:
int a = 1;
int text = 2;
ind ccSomeThingElse = 3;
How can I change this?
closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello SAPUser,
Use the key combination
CtrlShiftF
That will format your code in standard way. Thanks,
By the way, could you explain the difference in the example you have given. I am not getting.
Best Regards
Chander Kararia
Edited by: Chander Kararia on Sep 23, 2009 3:21 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SAPUser,
Frankly speaking, still cannot find out what was the difference between the two, they appear to me 100% same.
well, let it be.
You might not be able to do customization on this, but you may add leave white blank lines in between two lines. The formatter does not remove this.
Best Regards
Chander Kararia
probably you need to do it manually, bez we don't have that kind(As suggested above) facility in NWDS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.