How can collapse methods in files by default? for example Java files. When opening the file I found methods expanded. So I want to make them collapsed by default. Is there a feature in NetBeans to do that?
Asked
Active
Viewed 93 times
1 Answers
1
You can collapse it by using the keymap:
i.e.
The default is CTRL+SHIFT+-.
But you can adjust this in Tools
->Options
->Keymap
.
they stay like that if you reopen the file.

Jonathan
- 1,955
- 5
- 30
- 50

UlrichGiorgioJaeger
- 51
- 6
-
CTRL+SHIFT+-. do collapse methods when the editor is opening. But when reopen it again return to be expanded again. – java dev Jul 31 '21 at 11:43
-
then use intelli j it is there staying collapsed – UlrichGiorgioJaeger Jul 31 '21 at 11:58
-
thanx UlrichGiorgioJaeger will try it. – java dev Jul 31 '21 at 12:00