Cave Johnson
Cave Johnson

Reputation: 6788

How to disable auto-comment feature in Netbeans

How can I stop Netbeans from automatically inserting asterisks and */ when I press Enter?

Here is a gif I created to illustrate what I'm talking about: enter image description here

You can see that when I insert a newline character, Netbeans automatically adds spaces and **/. How do I disable that feature? I looked everywhere in the settings and can't find it.

Edit: Note that I'm not referring to the automatically generated comment block that generates when you enter /** and press Enter above a function definition.

Upvotes: 1

Views: 356

Answers (2)

Martin Ille
Martin Ille

Reputation: 7055

This well-known issue has been solved in NetBeans 10.0:

jira: https://issues.apache.org/jira/browse/NETBEANS-947

enter image description here

Upvotes: 3

MikeJannino
MikeJannino

Reputation: 1302

Unfortunately, it looks like this is a known issue.

You can use

SHIFT + ENTER 

to avoid this autocompletion, temporarily.

Upvotes: 1

Related Questions