Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"

like image 761
Frank Avatar asked Aug 12 '11 02:08

Frank


People also ask

Whats the red line in Netbeans?

The red line simply marks 80 characters wide (by default) and is a visual guide to break long expressions over multiple lines. You can adjust the placement of the red line in (Netbeans 6.7): Tools > Options > Editor > Formatting.


3 Answers

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

like image 75
Sk8erPeter Avatar answered Oct 01 '22 03:10

Sk8erPeter


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.

like image 3
Steffen Opel Avatar answered Oct 01 '22 01:10

Steffen Opel


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.

like image 1
Buddhika Chathuranga Avatar answered Oct 01 '22 03:10

Buddhika Chathuranga