要設置 sublime Text 的快捷鍵,請遵循以下步驟:打開快捷鍵設置文件 Key Bindings – User。使用 { “keys”: [“按鍵組合”], “command”: “命令” } 的格式添加快捷鍵設置。保存更改。重新加載快捷鍵設置以使更改生效。
如何設置 sublime text 的快捷鍵
Sublime Text 是一款強大的代碼編輯器,它可以通過自定義快捷鍵來提高工作效率。設置快捷鍵的方法如下:
步驟 1:打開快捷鍵設置文件
- windows:Preferences -> Key Bindings – User
- macos:Sublime Text -> Preferences -> Key Bindings – User
- linux:Preferences -> Key Bindings – User
步驟 2:編輯快捷鍵設置
Key Bindings – User 文件包含了所有當前的快捷鍵設置。要設置一個新快捷鍵,請添加以下格式的代碼:
{ "keys": ["ctrl+shift+a"], "command": "show_panel" }
- keys:要按下的鍵組合,用方括號括起。
- command:要執行的命令。
例如,要將 ctrl+shift+a 設置為顯示側邊欄,您將添加以下代碼:
{ "keys": ["ctrl+shift+a"], "command": "show_side_bar" }
步驟 3:保存更改
在完成編輯后,保存 Key Bindings – User 文件。
步驟 4:重新加載快捷鍵
為了使更改生效,您需要重新加載快捷鍵設置。
- Windows:Preferences -> Reload Keymap
- macOS:Sublime Text -> Preferences -> Reload Keymap
- Linux:Preferences -> Reload Keymap
現在,您自定義的快捷鍵將可用。
提示:
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END