[英]how can i create a short cut for auto-format tags on document in sublime plugin 'tag'?
I want to create a short cut for 'Auto-Format Tags on Document' in Sublime plugin 'Tag' and it works when i choose this function from Edit -> Tag -> Auto-Format Tags on Document .我想在 Sublime 插件“标签”中为“文档上的自动格式化标签”创建一个快捷方式,当我从Edit -> Tag -> Auto-Format Tags on Document 中选择此功能时,它可以工作。
However i add this code in keybindings但是我在键绑定中添加了这个代码
{ "keys": [ "command+alt+s" ], "command": "Auto-Format Tags on Document" }
It didn't work and this combination shortcut keys is available.它没有用,这个组合快捷键可用。
Could someone help me?有人可以帮助我吗?
On mac you need to refer about ⌘ key as super in your keybinding file.在 Mac 上,您需要在键绑定文件中将⌘键称为super 。
And then if you look in your Key Binding - Default file you will see this combo is already taken :然后,如果您查看Key Binding - Default 文件,您将看到此组合已被采用:
{ "keys": ["super+alt+s"], "command": "save_all" },
You need to change this value in your Keys Binding - User file if you do not wants to lose this shortcut :D如果您不想丢失此快捷方式,则需要在Keys Binding - User 文件中更改此值:D
All documentation is available on sublimetext website as unofficial doc : go to keybinding documentation .所有文档都可以在 sublimetext 网站上作为非官方文档获得: 转到键绑定文档。
Modifiers
修饰符
- shift
转移
- ctrl
控制
- alt
alt
- super (Windows key, Command key...)
超级(Windows 键、Command 键...)
Should resolve your problem :)应该可以解决您的问题:)
For windows user :
{"keys": ["f7"], "command": "tag_indent_document"},
对于 Windows 用户:
{"keys": ["f7"], "command": "tag_indent_document"},
and it's obvious you can use your own key combination instead of f7 ;)很明显,您可以使用自己的组合键代替f7 ;)
Extra: if you searching online tool to check unclose html tags额外:如果您搜索在线工具来检查 unclose html 标签
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.