op ol
op ol

Reputation: 767

Netbeans - tabs are not typed in empty lines

Tab key doesn't work in empty lines in Netbeans. If I type something(e.g. a dot), then it works.
How to enable tab key in empty lines?

Upvotes: 4

Views: 534

Answers (1)

L. Messing
L. Messing

Reputation: 70

Make sure you have the latest JDK installed and used by Netbeans.
Currently 17.0.1 (01.2022).

I was using Netbeans 12.6 with jdk 1.8.0_261. When pressing TAB on an empty line nothing happened but in the bottom right corner you can see a notification that a unexpected MethodNotFound Exception is thrown. Installing JDK 17.0.1 fixed it. Make sure your IDE actually uses the new JDK by going to
Tools -> Java Platforms and the JDK 17 is the default one.

Upvotes: 3

Related Questions