I’m trying to find a command on Android Studio to convert a selected text to uppercase but I’m unable to do so.
Is there any shortcut for this? I think it is a very common action on IDE but haven’t found any clue yet.
Select the text, then go to Edit → Toggle Case (Ctrl+Shift+U on Windows).
The IntelliJ shortcut is evidently Ctrl+Shift+U (Command+Shift+U on Mac) and should work since Android Studio is based off of it. Here’s their documentation page.
You need to keep Caps Lock on while using this shortcut.
I could not get the shortcut Ctrl+Shift+U to work in Android Studio on Ubuntu 14.04 until I turned on Caps Lock.
Command+Shift+U worked for me on my Mac
Sometimes some weird things happening. I am using
My string is like :
Now when I press CTRL+SHIFT+U then I am getting output like:
So I tried with CTRL+SHIFT+WINDOWS+U and its worked perfectly.
Note : I have kept CAPS LOCK ON.
If you are looking for it on Linux Ubuntu 14.04 , first turned on Caps Lock and then, Ctrl + Shift + U.
The shortcut Cmd+Shift+X works in Android Studio 1.5 on Mac.