Change keyboard shortcut in sublime text 2

2019-04-04 17:20发布

How do i change the current keys for selecting all with the multiple cursor to CMD + G?

1条回答
乱世女痞
2楼-- · 2019-04-04 18:14

The keyboard shortcuts are referrred to as key bindings in Sublime Text 2. There is documentation here and here that will show you how to manipulate them. Click "Preferences" > "Default Key Bindings" to view them. Copy and paste the ones you want to edit into "Preferences" > "User Key Bindings"

e.g.

 <binding key="cmd+t,u" command="upperCase"/>

As noted in the comments, the config is now in json format for newer Sublime Text.

e.g.

    { "keys": ["cmd+t,u"], "command": "snake_case" }
查看更多
登录 后发表回答