簡體   English   中英

如何在 sublime 插件“標簽”中為文檔上的自動格式化標簽創建快捷方式?

[英]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 鍵...)

應該可以解決您的問題:)

對於 Windows 用戶{"keys": ["f7"], "command": "tag_indent_document"},

很明顯,您可以使用自己的組合鍵代替f7 ;)

此處提供的文檔:

額外:如果您搜索在線工具來檢查 unclose html 標簽

檢查這個很棒的網站

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM