简体   繁体   中英

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?

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.

在此输入图像描述

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM