How extract private static constant in Intellij Idea?

Hit ctrl+alt+c twice (shows Extract Constant dialog)

hit alt+v (set default Visibility to Private)

hit enter

Done 🙂 The private scope is set default – so you can use constant extraction as before, to change default scope simply repeat steps above with choosing different scope.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)