Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I default constants in IntelliJ to private?

When I am creating a constant in IntelliJ (using Ctrl+Alt+C), by default it is public static final. How can I make it private static final instead?

like image 324
Grzenio Avatar asked May 25 '16 08:05

Grzenio


1 Answers

After Ctrl+Alt+C, press this shortcut again, which shows dialog with more options.

There is a visibility section. If you select private here, it will be the new default when extracting constants the next time.

enter image description here

like image 188
Vojtech Ruzicka Avatar answered Nov 16 '22 04:11

Vojtech Ruzicka