我一直在瀏覽 VS Code 文檔,但沒有看到任何可以讓我使用 ⌘+n 跳到選項卡 n 的內容。這在 VS Code 中可行嗎?我非常習慣在 chrome 和 sublime text 中使用這些熱鍵。
答案1
將其放入“keybindings.json”文件中:
{"key":"cmd+0", "command":"workbench.action.openLastEditorInGroup"},
{"key":"cmd+1", "command":"workbench.action.openEditorAtIndex1"},
{"key":"cmd+2", "command":"workbench.action.openEditorAtIndex2"},
{"key":"cmd+3", "command":"workbench.action.openEditorAtIndex3"},
{"key":"cmd+4", "command":"workbench.action.openEditorAtIndex4"},
{"key":"cmd+5", "command":"workbench.action.openEditorAtIndex5"},
{"key":"cmd+6", "command":"workbench.action.openEditorAtIndex6"},
{"key":"cmd+7", "command":"workbench.action.openEditorAtIndex7"},
{"key":"cmd+8", "command":"workbench.action.openEditorAtIndex8"},
{"key":"cmd+9", "command":"workbench.action.openEditorAtIndex9"}
For advanced customizations open and edit keybindings.json
若要取得“keybindings.json”文件,請前往“首選項”>“鍵盤快速鍵”,然後在編輯器頂部附近尋找。