NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Smart Indentation in Netbeans

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
imrankane2005



Joined: 12 Apr 2010
Posts: 1

PostPosted: Mon Apr 12, 2010 4:11 pm    Post subject: Smart Indentation in Netbeans Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo