有两个插件提供此功能:
我使用一个名为String Manipulation的插件,它可以满足您的需要(甚至更多).
Select historyOfPresentIllness
并按Alt/option+M打开插件菜单,然后按:
- 5-To snake_case (or to camelCase)转换为
history_of_present_illness
- 6-To hyphen-case (or to snake_case),转换为
history-of-present-illness
为了让这更容易,你可以在File | Settings | Keymap
设置一个快捷方式.
There also is the [CamelCase][3] plugin.
Shift++U在格式之间切换 Select :
historyOfPresentIllness
-->;history_of_present_illness
-->;HISTORY_OF_PRESENT_ILLNESS
-->;HistoryOfPresentIllness
-->;historyOfPresentIllness
您还可以undo撤消更改(现在插件中的一个bug已经修复).