I’ve been using snippets and completions and they’re a great feature and certainly have their uses. What I’m curious about, however, is a feature to auto-replace/format text as I type it. Specifically, I’m imagining case-conversion. I use a number of languages where TitleCase or camelCase is the norm. Let’s take JavaScript, for example. Is there a feature or plugin that could convert the following text after I finish typing the name?
isnan ==> isNaN
charat ==> charAt
I guess it would be similar to a completion but one that works automatically after the entire “trigger” is typed and without requiring the use of [Tab]/[Enter]?
It would be great if it was regex-definable or would at least consider word borders like parens so that function names, arrays, etc. would work properly. For example:
isnan( ==> isNaN(
isnandgate ==> isnandgate // "isnan" does not occur between word borders. No substitution.
Does anyone have any suggestions for plugins or features native to Sublime that could accomplish this type of request?
Thanks.