Is there a shortcut on Android Studio to convert a text to uppercase?
AndroidAndroid StudioAndroid Problem Overview
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.
Android Solutions
Solution 1 - Android
Select the text, then go to Edit → Toggle Case (Ctrl+Shift+U on Windows).
Solution 2 - Android
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.
Solution 3 - Android
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.
Solution 4 - Android
Sometimes some weird things happening. I am using Ubuntu 18.10
.
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.
Thank you.
Solution 5 - Android
Command+Shift+U worked for me on my Mac
Solution 6 - Android
For Ubuntu 20.04 I had to use CTRL+SHIFT+WINDOWS+U with CAPS LOCK OFF
Solution 7 - Android
If you are looking for it on Linux Ubuntu 14.04 , first turned on Caps Lock and then, Ctrl + Shift + U.
Solution 8 - Android
For Ubuntu users that Pratik Butani's answer work for them and it's still annoying to them, here is another workaround:
Go to File > Settings... > Keymap
. Then search for the Toggle Case
and there must be two results. Right click on one of them and then hit Remove Ctrl+Shift+U
. Right click again and press Add Keyboard Shortcut
. Then hold Ctrl+Shift+Y
together and press OK
button to change the shortcut. Finally click Apply
to save changes.
Hope this BUG will be fixed soon...
Solution 9 - Android
The shortcut Cmd+Shift+X works in Android Studio 1.5 on Mac.