VSCode Settings
Main
How to edit?: Ctrl + ,
click the top right corner icon jump to JSON file
settings.json
// No telemetry
"telemetry.telemetryLevel": "off",
// Resize font size by `Ctrl + Mouse` Scroll
"editor.mouseWheelZoom": true,
// Git
"git.rebaseWhenSync": true,
// Eliminate conflict of shortcuts
"terminal.integrated.commandsToSkipShell": [
"-workbench.action.quickOpen",
"-workbench.action.terminal.openNativeConsole",
"-workbench.action.quickOpenView"
],
// Formatter
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"editor.formatOnSave": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
// Fonts
"editor.fontFamily": "Cascadia Code, JetBrains Mono, Noto Sans CJK SC, Consolas",
"terminal.integrated.fontFamily": "Cascadia Mono, JetBrains Mono NF, Noto Sans CJK SC, Consolas",
"terminal.integrated.fontSize": 16,
// Minimap
"editor.minimap.renderCharacters": false,
"editor.minimap.showSlider": "always",
// Appearance
"editor.wordWrap": "bounded",
"editor.stickyScroll.enabled": true,
"files.autoGuessEncoding": true,
"window.commandCenter": true,
"window.autoDetectColorScheme": true,
"workbench.preferredLightColorTheme": "Quiet Light",
// Extensions
"shellformat.path": "/usr/bin/shfmt",
If you remapped keymap in Linux ...
"keyboard.dispatch": "keyCode",
press Ctrl + S
twice to save
Vi Editor Mode
"vim.startInInsertMode": true,
"vim.useSystemClipboard": true,
// eliminate conflict: https://github.com/VSCodeVim/Vim/issues/1437
"vim.handleKeys": {
"<C-e>": false,
"<C-a>": false,
"<C-d>": false,
"<C-x>": false,
"<C-f>": false,
"<C-g>": false,
"<C-h>": false,
"<C-c>": false,
"<C-v>": false,
"<C-l>": false,
"<C-k>": false
},
Product Type:
Disable temporarily
Ctrl + Shift + P
type vimt
to enter
integeration:
// read .vimrc:
"vim.vimrc.enable": true,
// integrate with NeoVim:
"vim.enableNeovim": true,
"vim.neovimPath": "nvim",
Advanced
Fonts赞助作者 (Sponse me):

