221

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?

Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
Itay Moav -Malimovka
  • 52,579
  • 61
  • 190
  • 278

5 Answers5

377

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.

Community
  • 1
  • 1
Ken Chan
  • 84,777
  • 26
  • 143
  • 172
28

You can see all shortcuts of eclipse by pressing:

CTRL+SHIFT+L

alexander
  • 1,191
  • 2
  • 20
  • 40
Levent Akdeniz
  • 281
  • 3
  • 3
  • Once you've done this, scroll down the shortcut list and look for **To Lower Case** and **To Upper Case** to see they are **Shift+Ctrl+Y** and **Shift+Ctrl+X**, respectively. – Gabriel Staples Apr 28 '20 at 07:08
20
Help-> Key assist

You will get all of eclipse's shortcuts.

Tobias
  • 4,999
  • 7
  • 34
  • 40
Caution Continues
  • 743
  • 2
  • 10
  • 25
15

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

Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
5

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

el-teedee
  • 1,293
  • 1
  • 15
  • 27