[英]how can i create a short cut for auto-format tags on document in sublime plugin 'tag'?
我想在 Sublime 插件“標簽”中為“文檔上的自動格式化標簽”創建一個快捷方式,當我從Edit -> Tag -> Auto-Format Tags on Document 中選擇此功能時,它可以工作。
但是我在鍵綁定中添加了這個代碼
{ "keys": [ "command+alt+s" ], "command": "Auto-Format Tags on Document" }
它沒有用,這個組合快捷鍵可用。
有人可以幫助我嗎?
在 Mac 上,您需要在鍵綁定文件中將⌘鍵稱為super 。
然后,如果您查看Key Binding - Default 文件,您將看到此組合已被采用:
{ "keys": ["super+alt+s"], "command": "save_all" },
如果您不想丟失此快捷方式,則需要在Keys Binding - User 文件中更改此值:D
所有文檔都可以在 sublimetext 網站上作為非官方文檔獲得: 轉到鍵綁定文檔。
修飾符
- 轉移
- 控制
- alt
- 超級(Windows 鍵、Command 鍵...)
應該可以解決您的問題:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.