Is there a shortcut on Android Studio to convert a text to uppercase?

AndroidAndroid Studio

Android 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 :

enter image description here

Now when I press CTRL+SHIFT+U then I am getting output like:

enter image description here

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStackOverflowerView Question on Stackoverflow
Solution 1 - AndroidSanView Answer on Stackoverflow
Solution 2 - AndroidaProperFoxView Answer on Stackoverflow
Solution 3 - AndroidDhananjay MView Answer on Stackoverflow
Solution 4 - AndroidPratik ButaniView Answer on Stackoverflow
Solution 5 - Androiduser1286412View Answer on Stackoverflow
Solution 6 - AndroidStephen den BoerView Answer on Stackoverflow
Solution 7 - AndroidshabyView Answer on Stackoverflow
Solution 8 - AndroidSaman SattariView Answer on Stackoverflow
Solution 9 - AndroidRanveer BedayseeView Answer on Stackoverflow