Changing the case of a string in Eclipse

EclipseIdeKeyboard Shortcuts

Eclipse Problem Overview


How do I make a lowercase string uppercase using Eclipse? I want to select a string and either uppercase it or lowercase it. Is there a shortcut for doing this?

Eclipse Solutions


Solution 1 - Eclipse

By default, the hotkeys:

CTRL+SHIFT+Y changes to lowercase.

CTRL+SHIFT+X changes to UPPERCASE.

Or, on a Mac:

++Y changes to lowercase.

++X changes to UPPERCASE.

Solution 2 - Eclipse

You can see all shortcuts of eclipse by pressing:

CTRL+SHIFT+L

Solution 3 - Eclipse

Help-> Key assist

You will get all of eclipse's shortcuts.

Solution 4 - Eclipse

Eclipse only provides a keyboard shortcut by default. If you prefer to use the menu, you can use the free plugin AnyEdit Tools, which will add some entries to the context menu to change the case of the selected text:

enter image description here

To install:

enter image description here

Solution 5 - Eclipse

Ctrl+Shift+y : To-lower
Ctrl+Shift+x : To-Upper

In addition, in Eclipse IDE, press Ctrl+Shift+L, then you see this list of shortcuts panel

enter image description here

then you can find any shortcut

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
QuestionItay Moav -MalimovkaView Question on Stackoverflow
Solution 1 - EclipseKen ChanView Answer on Stackoverflow
Solution 2 - EclipseLevent AkdenizView Answer on Stackoverflow
Solution 3 - EclipseCaution ContinuesView Answer on Stackoverflow
Solution 4 - EclipseFranck DernoncourtView Answer on Stackoverflow
Solution 5 - EclipseMorteza PouladiView Answer on Stackoverflow