How can I use default constants for IntelliJ?

When I create a constant in IntelliJ (using Ctrl + Alt + C), the default is this public static final. How can I do this private static finalinstead?

+4
source share
1 answer

After Ctrl+ Alt+ Cagain, press this combination, which displays a dialog box with additional options.

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

enter image description here

+7
source

All Articles