Netbeans - Turn off - wavy red underlines - How?

不羁的心 提交于 2019-11-30 04:16:55

问题


How can I turn off the wavy red underlines in Netbeans? I don't want to be interrupted while I'm typing, and told that a half finished line of code is wrong.


回答1:


This has actually already been addressed and illustrated in Arnold's answer to NetBeans. Disable error checking underline (+1); select Tools -> Options -> Fonts & Colors -> Syntax -> Category Error and adjust the font effects (or any other style) to your liking:

I've confirmed it to still work like so - please note that new settings won't have any effect until you trigger an editor update, e.g. by typing a letter.

Unfortunately this doesn't seem to help with performance in any immediately observable way (though removing font effects like this indeed used to speed up things in the olden days).




回答2:


Follow this path if you want to turn them off, (I'm using NeatBeans 5.5.1)

Tools -> Options -> Advanced Options -> Open the "Editing" node and click on "Java sources" -> Enter 0 for the "Error Annotation Limit"

That will completely turn off the red underlines. You can also change the "automatic parsing delay" at the same location if you want a longer pause instead.



来源:https://stackoverflow.com/questions/236733/netbeans-turn-off-wavy-red-underlines-how

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!