简体   繁体   English

Emmet 键盘快捷键在 vscode 中不起作用

[英]Emmet keyboard shortcuts not working in vscode

I'm not talking about the abreviations (which works fine);我不是在谈论缩写(这很好用); but rather keyboard shortcuts.而是键盘快捷键。

Like this one for instance, Ctrl+k is supposed to remove a tag(opening and closing) and re-arrange the inner HTML's indentation.像这样的一个,例如,按Ctrl + K应该删除标记(开启和关闭),并重新安排内部HTML的缩进。

This is just one example, but most shortcust found in emmet's page, doesnt work on vscode, why is that ?这只是一个例子,但是在 emmet 的页面中找到的大多数快捷方式在 vscode 上不起作用,为什么? how can I fix it ?我该如何解决?

If you look at the Keyboard Shortcuts page and search for emmet you will see many emmet commands unbound to a keybinding.如果您查看Keyboard Shortcuts页面并搜索 emmet,您将看到许多未绑定到键绑定的 emmet 命令。 Including包含

editor.emmet.action.removeTag

[I think there are just too many emmet commands for vscode to have devoted keybindings to them when most people wouldn't use them.] [我认为 vscode 的 emmet 命令太多了,以至于在大多数人不会使用它们的情况下专门为它们设置了键绑定。]

If you hover over any command and click on the + sign to its left vscode will open an input box where you can enter your desired shortcut keybinding.如果您将鼠标悬停在任何命令上并单击其左侧的+号,vscode 将打开一个输入框,您可以在其中输入所需的快捷键绑定。

I wouldn't recommend Ctrl + K as that is used as a part of a lot of default keybindings in vscode.我不推荐Ctrl + K,因为它被用作 vscode 中许多默认键绑定的一部分。

emmet 快捷方式演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM