Changing the case of a string in Eclipse

77,945

Solution 1

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

You can see all shortcuts of eclipse by pressing:

CTRL+SHIFT+L

Solution 3

Help-> Key assist

You will get all of eclipse's shortcuts.

Solution 4

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

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

Share:
77,945

Related videos on Youtube

Itay Moav -Malimovka
Author by

Itay Moav -Malimovka

SOreadytohelp Below are some of the open source projects I work on. A PHP Library the wrappes SurveyMonkey's API https://github.com/itay-moav/TheKofClient A tool to Schema Check, manage Stored Procedures, Triggers, Views and get autocompletion: https://github.com/itay-moav/rahl_commander A fun way to point users at the right direction in your site ;-) https://github.com/itay-moav/babahandofgod An old version of WMD which I converted to Mootools, 8 years ago... http://moowmd.awardspace.info Feel free to contact me through linkedin http://www.linkedin.com/in/itaymoav

Updated on September 06, 2020

Comments

  • Itay Moav -Malimovka
    Itay Moav -Malimovka over 3 years

    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?

  • Someone Somewhere
    Someone Somewhere over 11 years
    do you know if this can be added to the Eclipse menu, maybe under "Edit" or under "Source" ? Those hotkeys are impossible to remember.
  • Ken Chan
    Ken Chan over 11 years
    You can use the hot key CTRL+SHIFT+L to bring up the popup that contains all the available hot-keys
  • Avi Cohen
    Avi Cohen over 10 years
    The hot key "CTRL+SHIFT+L" is for "Key Assist", which is under the "Help" menu.
  • Emmanuel Angelo.R
    Emmanuel Angelo.R over 9 years
    instead of going help-> key assist you can press ctrl+shift+L
  • cgajardo
    cgajardo about 9 years
    on a mac you can use: cmd + shift + X (+Y)
  • Gabriel Staples
    Gabriel Staples about 4 years
    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.