【解决】atom -安装emmet 后keybinding 不起作用

16 篇文章 0 订阅
9 篇文章 0 订阅

尝试多种办法后仍未解决,按照官方debug手册,将atom 恢复至factory状态

官方问答:debugging/#check-the-keybindings

atom 恢复至factory状态

#清除个人设置
$ mv ~/.atom ~/.atom-backup
#该命令并未完全删除文件,而是将文件移动至~/.atom-backup
#可前往查找恢复
#$ open ~/.atom-backup

> Tip: The command given above doesn't delete the old configuration, just puts it somewhere that Atom can't find it. If there are pieces of the old configuration you want to retrieve, you can find them in the ~/.atom-backup directory.

$ apm links
#检查链接的package
/Users/Rachel1900/.atom/dev/packages (0)
└── (no links)
/Users/Rachel1900/.atom/packages (0)
└── (no links)

重启atom,问题解决

其他参考解决方案及手册

  1. Keymaps in Depth section
  2. stackoverflow

If multiple keybindings are matched, Atom determines which keybinding will be executed based on the specificity of the selectors and the order in which they were loaded. If the command you wanted to trigger is listed in the Keybinding Resolver, but wasn’t the one that was executed, this is normally explained by one of two causes:

  1. The key combination was not used in the context defined by the keybinding’s selector.
    For example, you can’t trigger the keybinding for the tree-view:add-file command if the Tree View is not focused.
  1. There is another keybinding that took precedence
    This often happens when you install a package which defines keybindings that conflict with existing keybindings. If the package’s keybindings have selectors with higher specificity or were loaded later, they’ll have priority over existing ones.

you find after installing emmet, tab completion doesn’t work as described in the documentation, go to Atom > Keymap or File > Keymap add the following code, then restart Atom (this fix worked for me):

'atom-text-editor:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
  1. emmet-on-atom-not-working-properly
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值