1071 views
# VSCode Vim 搭配設定檔 ###### tags: `MCL Notebook` `vscode` ## GotoDefinition ### `settings.json` ```json [ "vim.normalModeKeyBindingsNonRecursive": [ { "before": ["<C-]>"], "after": ["g", "d"] }, ], ] ``` ## GotoReferences ### `settings.json` ```json [ "vim.normalModeKeyBindingsNonRecursive": [ { "before": ["g", "r"], "commands": [ "editor.action.goToReferences" ] } ] ] ``` ## TriggerSuggest ### `settings.json` ```json [ "vim.handleKeys": { "<C-n>": false, }, ] ``` ### `keybindings.json` ```json [ { "key": "ctrl+n", "command": "editor.action.triggerSuggest", "when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly" }, { "key": "ctrl+n", "command": "toggleSuggestionDetails", "when": "editorTextFocus && suggestWidgetVisible" }, { "key": "ctrl+alt+n", "command": "toggleSuggestionFocus", "when": "editorTextFocus && suggestWidgetVisible" } ] ```