Remove stroke collapse - Netbeans IDE

277 Views Asked by At

I am new to Netbeans and I'd like to remove the rectangle that strokes collapse's comments.

I'd also like to remove the plus icons for collapsing the code.

enter image description here

2

There are 2 best solutions below

3
andrewJames On

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:

enter image description here

The above screenshot is from 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).

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.

1
Pol On

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!)

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