I use a plugin called String Manipulation which has the capabilities you're looking for (and more).
Select historyOfPresentIllness
and press Alt+M to bring up the plugin menu, then press:
- 5 - To snake_case (or to camelCase) which converts to
history_of_present_illness
- 6 - To hyphen-case (or to snake_case) which converts to
history-of-present-illness
To make this easier, you could set up a shortcut at File | Settings | Keymap
.
A quick search of the plugin repository for "camel" showed a plugin called
CamelCase which does exactly what you're looking for with
SHIFT+
ALT+
U by toggling between various formats:
historyOfPresentIllness
--> history_of_present_illness
--> HISTORY_OF_PRESENT_ILLNESS
--> HistoryOfPresentIllness
--> historyOfPresentIllness
However, after trying it out, there seems to be a bug with this plugin which prevents you from undoing any changes. Update: it appears this bug has been fixed for a while now, so the CamelCase plugin is probably the way to go.