223

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
84.8k82 gold badges375 silver badges556 bronze badges
asked Jul 22, 2011 at 17:09

5 Answers 5

381

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.

answered Jul 22, 2011 at 17:14
Sign up to request clarification or add additional context in comments.

4 Comments

do you know if this can be added to the Eclipse menu, maybe under "Edit" or under "Source" ? Those hotkeys are impossible to remember.
You can use the hot key CTRL+SHIFT+L to bring up the popup that contains all the available hot-keys
The hot key "CTRL+SHIFT+L" is for "Key Assist", which is under the "Help" menu.
on a mac you can use: cmd + shift + X (+Y)
28

You can see all shortcuts of eclipse by pressing:

CTRL+SHIFT+L

alexander
1,3864 gold badges22 silver badges44 bronze badges
answered Aug 20, 2014 at 8:07

1 Comment

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.
20
Help-> Key assist

You will get all of eclipse's shortcuts.

Tobias
5,1688 gold badges38 silver badges42 bronze badges
answered Jul 31, 2013 at 9:43

1 Comment

instead of going help-> key assist you can press ctrl+shift+L
16

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

answered Aug 27, 2016 at 20:24

Comments

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,3511 gold badge16 silver badges27 bronze badges
answered Jan 8, 2017 at 10:03

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.