简体   繁体   English

消除行程崩溃 - Netbeans IDE

[英]Remove stroke collapse - Netbeans IDE

I am new to Netbeans and I'd like to remove the rectangle that strokes collapse's comments.我是 Netbeans 的新手,我想删除描边折叠评论的矩形。

I'd also like to remove the plus icons for collapsing the code.我还想删除用于折叠代码的加号图标。

在此处输入图像描述

It sounds like you want to completely disable "code folding".听起来您想完全禁用“代码折叠”。

You can do this by going to Tools > Options > Editor > Folding.您可以通过转到工具 > 选项 > 编辑器 > 折叠来执行此操作。

Then un-check the "Enable Code Folding" checkbox:然后取消选中“启用代码折叠”复选框:

在此处输入图像描述

The above screenshot is from NetBeans v13.上面的截图来自 NetBeans v13。 If you are using a significantly older version of NetBeans, it's possible that this may not apply to your version (I am not sure).如果您使用的是旧版本的 NetBeans,这可能不适用于您的版本(我不确定)。

If you want some different behavior, you may need to clarify your question, or use one of the other code folding options available on the same screen as the one shown above.如果您想要一些不同的行为,您可能需要澄清您的问题,或使用与上面显示的相同屏幕上可用的其他代码折叠选项之一。

You can remove the frame around the collapsed comment in the settings, or rather not remove it, but change the color so that it merges with your background.您可以在设置中删除折叠评论周围的框架,或者不删除它,但更改颜色以使其与您的背景合并。 Tools-> Options -> (tab) Font and color -> Highlighting -> and in the Categories there is an item "Border of the collapsed code" Change the text color and background color, click apply and see the result!) Tools-> Options -> (tab) Font and color -> Highlighting -> 在Categories里面有个项“Border of the collapsed code” 改变文字颜色和背景颜色,点击apply看看效果!)

Убрать рамку вокруг свёрнутого комментария можно в настройках, вернее не убрать а поменять цвет, чтобы она сливалась с вашим фоном. Убрать рамку вокруг свёрнутого комментария можно в настройках, вернее не убрать моменять цвет, чтобы она сливалась с в. Сервис-> Параметры -> (вкладка) Шрифт и цвет -> Подсветка -> и в Категориях есть пункт " Граница свёрнутого кода" Меняете цвет текста и цвет фона, нажимает применить и смотрим результат !) Сервис-> Параметры -> (вкладка) Шрифт и цвет -> Подсветка -> и в Категориях есть пункт " Граница свёрнутого кода" Меняете цвет текста и цвет фона, нажимает применить и смотрим результат !)

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

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