Search code examples
sublimetext

How to convert a selection to lowercase or uppercase in Sublime Text


I have several strings selected in a file in Sublime Text and I want to convert them all to lowercase.

How can I convert them all to lowercase in Sublime Text?


Solution

  • From the Sublime Text docs for Windows/Linux:

    Keypress            Command
    Ctrl + K, Ctrl + U  Transform to Uppercase
    Ctrl + K, Ctrl + L  Transform to Lowercase
    

    and for Mac:

    Keypress    Command
    cmd + KU    Transform to Uppercase
    cmd + KL    Transform to Lowercase
    

    Also note that Ctrl + Shift + p in Windows ( + Shift + p in a Mac) brings up the Command Palette where you can search for these and other commands. It looks like this:

    enter image description here