- 在
/Users/macos/Library/Application Support/Code/User/keybindings.json
添加如下設置,就可以通過快捷鍵,快速複製文件的路徑、文件在訪達的位置、文件在側邊欄的位置
{
"key": "alt+cmd+ctrl+i", // Reveal in Side Bar
"command": "workbench.files.action.showActiveFileInExplorer",
"when": "textInputFocus"
},
{
"key": "alt+cmd+ctrl+o", // Reveal in Finder
"command": "revealFileInOS",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+cmd+p", // Copy Path
"command": "copyFilePath",
"when": "textInputFocus"
},