Eclipse: convert upper case text to lower case and viceversa with a simple shortcut

This is just a quick post to share these 2 little shortcuts to convert text from lower case to uppercase and viceversa in Eclipse.

Lower case: CTRL+SHIFT+Y (CMD+SHIFT+Y on Mac OS X)
Upper case: CTRL+SHIFT+X (CMD+SHIFT+X on Mac OS X)

In both the combination you can select one or more character to convert.

  • Todd

    Great tip – Just what I was looking for today.

  • I come back to this post about once a month, when I again have the need to clean up somebodies code (somebody that never cares about Coding Conventions)

  • LOL, is not a difficult shortcut to remember :))

  • Thanks, exactly what I was looking for. :-)

  • Thanks! Just what I needed.

  • Anyone know if there’s a shortcut key to convert to camel case ?

    As in, “SOME TEXT” too “Some Text”

  • Thanks for this shortcut.. this has saved a lot of time for me, literally

  • en

    Thank you!

  • thanks ,i needed this

  • THANK YOU! Just what I needed at just the right time!

  • Thanks for the useful information…

  • Anyone find camel case shortcut? As in comment #6?

  • thanks1.. very useful

  • saurabh Solanki


  • j4y

    just helped out my coworker with this. Thanks!

    Also, on osx it’s command+shift X or Y

  • Rajesh

    Thank you!

  • Jeffrey

    Perfect :) Thanks for the tip

  • Excellent. Thanks.

  • Wooooohoooow! :P You saved my day!

  • Best

    That’s brilliant, thanks!

  • Jozsef

    Works in Aptana Studio 3 as well.
    Thanks! :)

  • You are a hero among men.

  • Steve

    The post that keeps on giving. Thanks…

  • Eric Minor

    Wow….been coding for years and recently a lot of my code depends on capitalization. This will sure help. It worked on a Windows 7 OS as well in eclipse.

  • Jan

    Hello Davide,
    thank you very much for sharing the shortcuts. This is just what I was looking for. Greetings from Germany,

  • Arnav

    Exactly what I was looking for.

  • Ilan Cohen

    One more expression of gratitude….

  • John

    thanks, that was really helpful!

  • Nico

    OH. THANK. YOU !

  • Awesome shortcut!

  • Vikash

    Thanks a lot I was looking for that for many years…….

  • Anyone find camel case shortcut? As in comment #12?

  • dharmender

    thanks :) very useful shortcuts

  • Raghu

    Excellent! thank you :)

  • That is exactly what I was looking for… Thank you!

  • Thank you!

  • Aravindan

    What abt for Windows 7?

  • it should be the same

  • Nice one – Thanks

  • For camel case try shift+ctrl+ –
    In Apana (maybe also Eclipse) it’s in Commands -> Source -> Toggle Camel Case

  • Thank you!

  • Mohan

    Very Helpful Tip

  • Edenir

    Great tip!

  • kazi

    very helpful

  • Thanks for saving me time :)

  • Raj

    Thanks. Very Helpful…

  • Gofa

    Coool! :)

  • Many thanks!!!

  • Tok Wei An

    You saved my day! Thanks so much

  • camden_kid


  • Thanks Dave! woo!

  • Love this. Thanks man

  • Gabo

    this is not working on mac os x (10.9.4)

  • Manish

    Thanks a lot ! :D

  • toubacol

    thanks man …

  • thanks.. it help full for me

  • BalRanj

    A real thanks.. :) as it will reduce my time to work..

  • Hasan Ünlü

    Thanks :)

  • Jayakumar Jayaraman

    Cool ….its helpfull

  • kishore k

    Thank you very much

  • Orhan Gazi Hafif

    Wow 7 years old thread and it still working :P