'Remove stroke collapse - Netbeans IDE

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



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 andrewJames