<Android Studio Kotlin: Extract as Constant> In In...
# stackoverflow
u
Android Studio Kotlin: Extract as Constant In IntelliJ-based IDEs like Android Studio, in Java source codes, there is an option to extract things as constants when possible (final static). It is in Refactor -> Extract -> Constant and is accessible through Ctrl+Alt+C. But I can't find it for Kotlin source codes!

https://i.stack.imgur.com/ZO4TA.png

Note 1: I can do it manually as you can see about NUMBER in the above screenshot (by defining it as a const val in companion object). Note 2: The...