Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By Eranga

Thread: Auto Indent in Netbeans 6.9.1

  1. #1
    Martyn is offline Member
    Join Date
    Nov 2011
    Location
    Belfast
    Posts
    37
    Rep Power
    0

    Default Auto Indent in Netbeans 6.9.1

    Hello,

    I am trying to find out if there is a way to auto indent code within Netbeans 6.9.1 I was told in class that Alt+Shift+F are the keys for this and it worked in class but it doesn’t work at home. I have opened tools - options - keymap to see what these buttons do and it says "format" which I assume is indent but you know what is said about assumptions. I originally had Netbeans 7.1 installed, I uninstalled that version to see if this would help to no avail.
    I have attached a screenshot of the keymap.

    Auto Indent in Netbeans 6.9.1-netbeans-indent-buttons.jpg

    Regards

    Martyn
    Last edited by Eranga; 01-06-2012 at 04:15 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default Re: Auto Indent in Netbeans 6.9.1

    If you are using the parenthesis properly NetBeans done the auto indent. Alt+Shift+F is for the document formatting, and it does the indenting too.
    Martyn likes this.

  3. #3
    Martyn is offline Member
    Join Date
    Nov 2011
    Location
    Belfast
    Posts
    37
    Rep Power
    0

    Default Re: Auto Indent in Netbeans 6.9.1

    Dont know what happened but all of a sudden it is now working Alt+Shift+F = Auto Indent

  4. #4
    Martyn is offline Member
    Join Date
    Nov 2011
    Location
    Belfast
    Posts
    37
    Rep Power
    0

    Default Re: Auto Indent in Netbeans 6.9.1

    Quote Originally Posted by Eranga View Post
    If you are using the parenthesis properly NetBeans done the auto indent. Alt+Shift+F is for the document formatting, and it does the indenting too.
    Thank you Eranga

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default Re: Auto Indent in Netbeans 6.9.1

    Quote Originally Posted by Martyn View Post
    Dont know what happened but all of a sudden it is now working Alt+Shift+F = Auto Indent
    Is there a key map for Auto Indent in NetBeans? I am using the NetBeans 7 and there is no key map for Auto Indent.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. How to indent?
    By federer in forum New To Java
    Replies: 8
    Last Post: 11-07-2011, 07:29 AM
  2. Auto contrast and auto brightness
    By oxxxis in forum Java 2D
    Replies: 0
    Last Post: 01-21-2010, 09:32 PM
  3. Replies: 8
    Last Post: 04-06-2009, 02:13 AM
  4. JSP Auto Log -In
    By Eku in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 09-18-2008, 04:58 AM
  5. Auto-complete/Auto-fix for custom statement
    By dark_cybernetics in forum Eclipse
    Replies: 0
    Last Post: 08-19-2008, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •