Intellij shortcut to convert code to upper or lower case?

Intellij IdeaKeyboard Shortcuts

Intellij Idea Problem Overview


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

Intellij Idea Solutions


Solution 1 - Intellij Idea

Ctrl + Shift + U

In the future try typing: Ctrl + Shift + A and look for any actions you like. Here: Toggle Case.

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

Solution 2 - Intellij Idea

According to the documentation :

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

Solution 3 - Intellij Idea

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

Solution 4 - Intellij Idea

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

Solution 5 - Intellij Idea

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.

Solution 6 - Intellij Idea

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

Solution 7 - Intellij Idea

Toggle case in Intellij IDE:

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

For Windows OS use Ctrl+Shift+u

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
QuestionMarcus LeonView Question on Stackoverflow
Solution 1 - Intellij IdeaTomasz NurkiewiczView Answer on Stackoverflow
Solution 2 - Intellij IdeaPascal MARTINView Answer on Stackoverflow
Solution 3 - Intellij IdeaIvan ArackiView Answer on Stackoverflow
Solution 4 - Intellij IdeaT04435View Answer on Stackoverflow
Solution 5 - Intellij IdeaVinay PrajapatiView Answer on Stackoverflow
Solution 6 - Intellij IdeaShravan RamamurthyView Answer on Stackoverflow
Solution 7 - Intellij IdeaChirag MALIView Answer on Stackoverflow