简体   繁体   English

如何停止此 Netbeans IDE 突出显示?

[英]How to I stop this Netbeans IDE highlighting?

I am currently using Netbeans IDE 7.4 to write some basic HTML code.我目前正在使用 Netbeans IDE 7.4 编写一些基本的 HTML 代码。 Whenever I type a tag, it immediately highlights it, making it next to impossible to read until I click somewhere else.每当我输入一个标签时,它会立即突出显示它,在我点击其他地方之前几乎无法阅读。 This is incredibly annoying.这是令人难以置信的烦人。 I have looked at all previous solutions, but for some reason they only work with Java and not HTML.我已经查看了所有以前的解决方案,但出于某种原因,它们只适用于 Java 而不适用于 HTML。 Does anybody know how to fix this?有谁知道如何解决这个问题?

在此处输入图片说明

After ongoing bouts of frustration with the NetBeans highlighting , I finally figured out this was not so much of an issue of highlighting being turned on or off , but more an issue of how the highlighting is being rendered.在对NetBeans 突出显示不断感到沮丧之后,我终于发现这不是打开或关闭突出显示的问题,而是突出显示如何呈现的问题。

Turning highlighting off completely (as suggested above) has never been fully successful in my case in either NetBeans 8.x or 9.0 (I'm currently using 9.0), and the highlighting can seriously become so annoying in that it's too difficult to read the highlighted text, that it becomes a distraction and negatively impacts productivity.在 NetBeans 8.x 或 9.0(我目前使用的是 9.0)的情况下,完全关闭突出显示(如上所述)从未完全成功,并且突出显示可能会变得非常烦人,因为它太难阅读了突出显示的文本,它会分散注意力并对生产力产生负面影响。

Having determined that this is a question of rendering verses IDE functionality , the original answer is on target as far as modifying the Mark Occurrences styling in:确定这是一个渲染与IDE功能的问题后,原始答案是针对修改 Mark Occurrences 样式的目标:

Tools > Options > Fonts & Colors > Syntax -> Mark Occurrences.工具 > 选项 > 字体和颜色 > 语法 -> 标记出现次数。

However, since I work in multiple projects of multiple types, I selected 'All Languages' in the drop-down, set the foreground and background colors to 'Inherited' (getting rid of the sickly yellow background (I'm using the Sublime Theme) and added Bold and Italic styling to the inherited font setting.但是,由于我在多个类型的多个项目中工作,我在下拉列表中选择了“所有语言”,将前景色和背景色设置为“继承”(摆脱病态的黄色背景(我正在使用 Sublime 主题) ) 并将粗体和斜体样式添加到继承的字体设置中。

Now, no matter the project or the language, highlighting is still working as intended, but it's no longer an annoyance.现在,无论项目或语言如何,突出显示仍然按预期工作,但不再是烦恼。

Hope this helps for others who have been likewise frustrated by this feature of NetBeans!希望这对同样对 NetBeans 的此功能感到沮丧的其他人有所帮助! It was getting to the point of almost driving me to another IDE.它几乎要把我带到另一个 IDE。

The mark-occurrences color can be modified in Options->Fonts & Colors -> Syntax, language: Java, Category: Mark Occurrences.标记出现的颜色可以在选项->字体和颜色->语法中修改,语言:Java,类别:标记出现。 To turn it off completely go to Options->Java code -> Mark Occurrences and disable the first checkbox.要完全关闭它,请转到 Options->Java code -> Mark Occurrences 并禁用第一个复选框。

http://netbeans-org.1045718.n5.nabble.com/Turn-off-or-change-the-automatic-highlight-of-the-mark-occurrence-feature-td2949743.html http://netbeans-org.1045718.n5.nabble.com/Turn-off-or-change-the-automatic-highlight-of-the-mark-occurrence-feature-td2949743.html

Try to change profile.尝试更改配置文件。 That works for me.这对我行得通。

Tools > Options > Fonts & Colors > profile.

Hope it will help.希望它会有所帮助。

在 Netbeans 12.5 中,这可以在工具|选项|编辑器选项卡|编辑器选项卡下的突出显示选项卡中配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM