NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
imrankane2005
Joined: 12 Apr 2010 Posts: 1
|
Posted: Mon Apr 12, 2010 4:11 pm Post subject: Smart Indentation in Netbeans |
|
|
Hi, I have tried both in Netbean IDE 6.1 and 6.8 but couldn't find solution for below problem.
specifically talking about Netbean IDE 6.8 I actually want to override the default indentation behaviour and use the FORMATTING setting which I have selected from Tools->options->Editor->Formatting->java .
Actually i like the way by which visual studio does automatic indentation for us. In that as soon as i press enter key visual studio automatically inserts spaces around operators and some other indentation stuff. I want to get the same feel of indentation behaviour in Netbean without pressing ALT-SHIFT-F each time when i write a new line in the editor.
Also, in Netbean IDE 6.8 my following java code
| Code: |
for(int i=0;i<32;i++){
}
|
is converted to
| Code: |
for
(int i=0;
i<32
;
i++)
{
}
|
when i select source->format
which looks very weird , though in IDE 6.1 result is different and is what I actually expected to be.
Any solution for this.
Thanks in advance |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|