Reputation: 5781
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.
Upvotes: 134
Views: 55690
Reputation: 71
For Ubuntu 20.04 I had to use CTRL+SHIFT+WINDOWS+U with CAPS LOCK OFF
Upvotes: 5
Reputation: 3578
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...
Upvotes: 2
Reputation: 62419
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.
Upvotes: 25
Reputation: 5697
Select the text, then go to Edit → Toggle Case (Ctrl+Shift+U on Windows).
Upvotes: 235
Reputation: 2174
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.
Upvotes: 108
Reputation: 141
The shortcut Cmd+Shift+X works in Android Studio 1.5 on Mac.
Upvotes: 1
Reputation: 1861
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.
Upvotes: 56
Reputation: 1381
If you are looking for it on Linux Ubuntu 14.04 , first turned on Caps Lock and then, Ctrl + Shift + U.
Upvotes: 2