Intellij shortcut to convert code to upper or lower case?
What is the Intellij shortcut to convert code to upper or lower case?
Solution 1:
Ctrl + Shift + U
In the future try typing: Ctrl + Shift + A and look for any actions you like. Here: Toggle Case.
Or ⌘ Command + Shift + U if you are using Mac OSX.
Solution 2:
According to the documentation :
Ctrl + Shift + U : Toggle case of the selected text block
Solution 3:
I would highly recommend String Manipulation plugin for Intellij.
With a simple Alt + M (Option + M for Mac) you get:
So you can easily manipulate with strings in the following way:
Solution 4:
If you are an Ubuntu User you will notice that Ctrl + Shift + U
will add an u instead of toggling the case.
The solution for me was to change the KeyMap from:
Ctrl + Shift + U --> Alt + Shift + U
You can do so with this Docs