Frank
Frank

Reputation: 31096

How to turn off red underlines in comments in Netbeans?

There is a similar question : "Netbeans - Turn off - wavy red underlines - How?" But It's for earlier version, doesn't apply any more.

I still want error to be underlined, just not in the comments, it's now underlined something like : "buffersize"

Upvotes: 21

Views: 11800

Answers (3)

Buddhika Chathuranga
Buddhika Chathuranga

Reputation: 1468

In Netbeans 12.0 this option can be found under the Editor tab. Not in the Miscellaneous tab.

Goto

Options -> Tools -> Editor -> SpellChecker Tab

Rest is the same as the first answer.

Upvotes: 3

Sk8erPeter
Sk8erPeter

Reputation: 6997

In NetBeans IDE 7.4 RC1 (Build 201309162201), you can disable spellchecking under
Tools → Options → Editor → Spellchecker tab

The settings refer to:

  • C/C++/Fortran Comments
  • GSP
  • HTML
  • JSP
  • Javadoc comments
  • PHP
  • Piain text
  • Properties
  • Script and Make Comments
  • XHTML
  • XML

Screenshot:

NetBeans: Disable/Enable spellchecker


Here is an example BEFORE and AFTER disabling HTML spellchecking.

before:

NetBeans: BEFORE disabling HTML spellchecking

after:

NetBeans: AFTER disabling HTML spellchecking

Upvotes: 28

Steffen Opel
Steffen Opel

Reputation: 64751

This is explained and illustrated in How to disable red-underline spellchecker in Netbeans 7:

To remove it simply choose Tools → Options → Miscellanous, then in Spellchecker tab uncheck the C/C++/Fortran Comments and press OK. [...]

NetBeans - disable spellchecker: Tools -> Options -> Miscellanous -> Spellchecker tab

The specific result of disabling the spellchecker depends on the target language/syntax of course, but likely this should yield the desired effect.

Upvotes: 3

Related Questions