Marcus Leon
Marcus Leon

Reputation: 56699

Intellij shortcut to convert code to upper or lower case?

What is the Intellij shortcut to convert code to upper or lower case?

Upvotes: 345

Views: 128680

Answers (8)

Toggle case in Mac OS and Windows OS :

Ctrl + Shift + U

but in Ubuntu OS you can use it in tab Edit=>Toggle Case or change key map setting of Toggle Case to :

Alt + Shift + U

Upvotes: 1

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340973

Ctrl + Shift + U

Or ⌘ Command + Shift + U if you are using Mac OSX.

In the future, hit the Ctrl + Shift + A shortcut key and search for the action that you are after. In this case, search for: Toggle Case.

Upvotes: 570

Shravan Ramamurthy
Shravan Ramamurthy

Reputation: 4096

Select the text/word/line to be modified and hitting Cntrl+Shift+U or Command+Shift+U` (MAC) works. Please look here for more detail

Upvotes: 4

T04435
T04435

Reputation: 14022

If you are an Ubuntu User you will notice that Ctrl + Shift + U will add an u instead of toggling the case.

The solution for me was to change the KeyMap from:

Ctrl + Shift + U --> Alt + Shift + U

You can do so with this Docs

Upvotes: 29

Chirag MALI
Chirag MALI

Reputation: 27

Toggle case in Intellij IDE:

For Ubuntu OS use Ctrl+Shift+x or Ctrl+Shift+y

For Windows OS use Ctrl+Shift+u

Upvotes: 2

Ivan Aracki
Ivan Aracki

Reputation: 5391

I would highly recommend String Manipulation plugin for Intellij.

With a simple Alt + M (Option + M for Mac) you get:

enter image description here

So you can easily manipulate with strings in the following way:

enter image description here

Upvotes: 30

Vinay Prajapati
Vinay Prajapati

Reputation: 7546

Please check your hot-key settings first. You could go to

File > Settings > Search for Keymap > Search for Toggle Case

and see what hot-key has been configured. See screenshot below:-

enter image description here

If not configured, create a new one for yourself.

Upvotes: 4

Pascal MARTIN
Pascal MARTIN

Reputation: 401182

According to the documentation :

Ctrl + Shift + U : Toggle case of the selected text block

Upvotes: 47

Related Questions