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. 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.
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!)
Убрать рамку вокруг свёрнутого комментария можно в настройках, вернее не убрать а поменять цвет, чтобы она сливалась с вашим фоном. Сервис-> Параметры -> (вкладка) Шрифт и цвет -> Подсветка -> и в Категориях есть пункт " Граница свёрнутого кода" Меняете цвет текста и цвет фона, нажимает применить и смотрим результат !)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.