我使用的是mac mini,用的普通windows键盘,习惯了Home键是跳到行首,End键是跳到行尾。

但sublime是默认是跟的系统设置,也是就用command+left command+right

修改方法:

Preferences->Key Bindings


sublime Text3 在Mac上使用Home和End键跳到行首和行尾

在右侧User那边,添加上如下几行配置

{ "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false}},

{ "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },


sublime Text3 在Mac上使用Home和End键跳到行首和行尾


保存后就能生效了


补充:

还可以加上这两行配置,实现按住shift后 配合home end的选中功能

 { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true}},

{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-09-21
  • 2021-06-25
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2022-01-04
  • 2021-05-15
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案