Indentation in NetBeans

Posted on 2009-02-23
Last Modified: 2013-12-14
Simple, what is the key combination for indentation in NetBeans?
Question by:jazzIIIlove
    LVL 23

    Expert Comment

    Try Ctrl + Shift + I
    LVL 12

    Author Comment

    Nice try but as far as i know CTRL+Shift +I is for eclipse based tools...

    Nevertheless, i tried in Netbeans but no joy...
    LVL 35

    Accepted Solution

    DO you mean indent block?  Or Format block?

    Indent block is "Tab" (or Shift-Tab for outdent)

    Format block is Shift-Alt-F (or Shft-Cmd-F on Mac)

    I'll make sure when I get to a non-mac machine ;)
    LVL 59

    Assisted Solution

    by:Kevin Cross
    TimYates is correct.

    To format code, Alt+Shift+F works on PC.  I use 'Tab' for indenting with no issues as well.  The other shortcut to indent/outdent is as follows:

    Shift Left - Alt + Shift + {Left Arrow}
    Shift Right - Alt + Shift + {Right Arrow}
    LVL 12

    Author Comment

    joy with Shift-Alt-F

    best regards...

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now