StackOverflower
StackOverflower

Reputation: 5781

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

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

Answers (10)

LeMinhDuc
LeMinhDuc

Reputation: 1

Ctrl+Shift+U should work on Windows.

Upvotes: 0

Stephen den Boer
Stephen den Boer

Reputation: 71

For Ubuntu 20.04 I had to use CTRL+SHIFT+WINDOWS+U with CAPS LOCK OFF

Upvotes: 5

Saman Sattari
Saman Sattari

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

Pratik Butani
Pratik Butani

Reputation: 62419

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.

Upvotes: 25

San
San

Reputation: 5697

Select the text, then go to Edit → Toggle Case (Ctrl+Shift+U on Windows).

Upvotes: 235

aProperFox
aProperFox

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

Ranveer Bedaysee
Ranveer Bedaysee

Reputation: 141

The shortcut Cmd+Shift+X works in Android Studio 1.5 on Mac.

Upvotes: 1

Dhananjay M
Dhananjay M

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

shaby
shaby

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

user1286412
user1286412

Reputation: 231

Command+Shift+U worked for me on my Mac

Upvotes: 15

Related Questions