IntelliJ IDEA offers to extract values to constants.

The shortcut on my machine is Cmd+Alt+C : shortcuts

However, when I select a string in my Kotlin code and use the shortcut, nothing happens.

When I run Refactor This, the option does not even appear:

.refactor this]2

I am using IntelliJ IDEA Ultimate Edition 2018.3.5 and Kotlin 1.3.21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.