Sublime Forum

Uppercasing and lowercasing with keyboard shortcuts

#1

Is there any keyboard shortcut for upper/lower casing the selected text?
i.e selecting ‘FitnessValue’ and pressing a keyboard shortcut to uppercase(or lower case) it.

0 Likes

#2
	{ "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" },
	{ "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" },

Plus, https://packagecontrol.io/packages/Case%20Conversion

1 Like

#3

Although not entirely ‘on topic’, my FR is not totally unrelated.

For the 'Convert Case, I’d like to see a context menu: highlight a word in the usual way (a double L-click) then have the ‘Convert Case’ options on the R-click context menu.

I’ve only been using Sublime Text for a few days, having switched over from a lesser text editor, but that’s a feature that I already miss – I find that the KB shortcuts for this are far from ideal.

With thanks.

0 Likes

#4

Context.sublime-menu

[
    {
        "caption": "Convert: Uppercase",
        "command": "upper_case",
    },
    {
        "caption": "Convert: lowercase",
        "command": "lower_case",
    },
]

ref: https://www.sublimetext.com/docs/menus.html

0 Likes

#5

Ah; thank you: I’ll have a look. I’ve yet to learn that the app is extendable in this way.

0 Likes

#6

Note that case conversion is available from the Edit > Convert Case menu.

0 Likes

#7

Thank you. Yes, I get that; it’s common to just about every text editor I’ve used, but having a context menu is way more convenient to use – even more so than a KB short cut; 2-key s/cuts aside, that is.

0 Likes