Traziiex Productions
Traziiex Productions

Reputation: 37

Netbeans isn't automatically identing (Java)

I have a university project where I must code a Java App. Since we learned java using Netbeans as an IDE, I decided to code the app using this IDE.

I had never experienced this bug on my previous computer. Right now, when I open "{ }" after writing a function or any other block, the line after when pressing "return" isn't indented, and pressing "tab" doesn't do anything.

public class App {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
System.out.println("");
code
impossible
to
indent...

    }
    
}

Maybe, someone know what the problem is ?

thanks :D

Upvotes: 0

Views: 155

Answers (2)

Steven T
Steven T

Reputation: 41

I had this problem as well and solved it by upgrading the JDK version that Netbeans uses. Check my answer here: Netbeans 12.6 on Linux. Java source code editor misbehaving

Upvotes: 0

Seems there is a bug in NetBeans.

See this link for more details https://issues.apache.org/jira/browse/NETBEANS-6281

Upvotes: 2

Related Questions