3

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?

java dev
  • 313
  • 1
  • 3
  • 12

1 Answers1

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