I'm aware that there is Edit > Change Case
menu. But there's no option for sentence case.
How do I achieve this? Is this possible for regex to achieve this?
I'm aware that there is Edit > Change Case
menu. But there's no option for sentence case.
How do I achieve this? Is this possible for regex to achieve this?
You can use this regex:
find
(^|\.\s|…\s)([a-z])
and replace with
\1\u\2
Explanation:
Find:
<h4>(.)(.*)</h4>
Replace:
<h4>\u\1\L\2</h4>
That would make
<h4>This Is A Demo</h4>
into
<h4>This is a demo</h4>
It is a possible duplicate of Sublime Text - command to make first character uppercase.
By the way, in brief, you could use the key-map CtrlK,CtrlI, writing in your "user keybinding file":
{ "keys": ["ctrl+k", "ctrl+i"], "command": "title_case" }