Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format variable names to camel case in Eclipse [duplicate]

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?

like image 912
Itay Moav -Malimovka Avatar asked Jul 22 '11 17:07

Itay Moav -Malimovka


5 Answers

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.

like image 199
Ken Chan Avatar answered Oct 05 '22 07:10

Ken Chan


You can see all shortcuts of eclipse by pressing:

CTRL+SHIFT+L

like image 30
Levent Akdeniz Avatar answered Oct 05 '22 06:10

Levent Akdeniz


Help-> Key assist

You will get all of eclipse's shortcuts.

like image 30
Caution Continues Avatar answered Oct 05 '22 06:10

Caution Continues


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

like image 38
Franck Dernoncourt Avatar answered Oct 05 '22 05:10

Franck Dernoncourt


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

like image 45
Morteza Pouladi Avatar answered Oct 05 '22 07:10

Morteza Pouladi