java - intellij have introduce constant be private not public -


in intellij idea 11.1.2, when using refactor shortcut introduce constant, makes public static final constant, whereas prefer default private. in older versions of intellij, i'm pretty sure had option of setting private default. know if there still exists option default private introduce constant refactor option rather having afterwards go declaration , edit public private? thanks

i had same problem , solved (idea 12).

to introduce private constants default following:

  • disable in-place mode (file -> settings -> editor -> uncheck "enable in-place mode")
  • try introduce (you see refactor dialog). select "private" in dialog
  • enable in-place mode
  • enjoy private constants

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -