Is there a way to capitalize a selection in Sublime? For example, if I have some text like word
, I'd like the output to be Word
.
I know that there is already an option to convert case into lower case or upper case, but those would result in word
and WORD
respectively. Is there a way to only capitalize the first letter?
One of the most popular code and text editors, Sublime Text also includes a capitalization tool. Just select your text, click the Edit menu, and select Convert Case followed by the case you want.
Alt+F3 gives a really simple way to do find and replace: Use it to select all occurrences of the current word or selection, then just start typing to replace or edit them all at once.
Alternatively you can select lines and go to SELECTION MENU >> SPLIT INTO LINES. Now you can edit multiple lines, move cursors etc. for all selected lines.
You can do it using the menu Edit>Convert Case>Title Case.
In case you want to set a keybinding the name of the associated command is title_case
.
Add keybinding under the preferences as follows:
[
// for uppercase:
{ "keys": ["ctrl+u"], "command": "upper_case" },
// for lowercase:
{ "keys": ["ctrl+l"], "command": "lower_case" },
// for titlecase:
{ "keys": ["ctrl+t"], "command": "title_case" },
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With