As listed in the known issues, the current behavior is not ideal.

The | represents the current caret position.
There are two problems:
- Does not work at all when the caret is placed at the end of a string, ie.:
"camelCase|"
- Does not work when the caret is placed after the second-last string's character, ie.:
"camelCa|se" (visible on gif)
It happens due to the string length change - it varies between camelCase and snake_case / kebab-case. Caret's position should update in some smart way.
Acceptance criteria:
I'm open to any suggestions.