add: vscode user settings
This commit is contained in:
parent
9106a7e403
commit
4291878eff
66
vscode/keybindings.json
Normal file
66
vscode/keybindings.json
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
// Place your key bindings in this file to override the defaults
|
||||||
|
[
|
||||||
|
// Editor switch
|
||||||
|
{
|
||||||
|
"key": "ctrl-shift-k",
|
||||||
|
"command": "workbench.action.previousEditorInGroup",
|
||||||
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl-shift-j",
|
||||||
|
"command": "workbench.action.nextEditorInGroup",
|
||||||
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
|
},
|
||||||
|
// Move lines up and down
|
||||||
|
{
|
||||||
|
"key": "alt+j",
|
||||||
|
"command": "editor.action.moveLinesDownAction",
|
||||||
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+k",
|
||||||
|
"command": "editor.action.moveLinesUpAction",
|
||||||
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
|
},
|
||||||
|
// File management
|
||||||
|
{
|
||||||
|
"key": "ctrl+n",
|
||||||
|
"command": "explorer.newFile",
|
||||||
|
"when": "explorerViewletFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+n",
|
||||||
|
"command": "explorer.newFolder",
|
||||||
|
"when": "explorerViewletFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+e",
|
||||||
|
"command": "workbench.action.toggleSidebarVisibility",
|
||||||
|
"when": "explorerViewletFocus"
|
||||||
|
},
|
||||||
|
// Terminal management
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+;",
|
||||||
|
"command": "workbench.action.togglePanel",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+n",
|
||||||
|
"command": "workbench.action.terminal.new",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+w",
|
||||||
|
"command": "workbench.action.terminal.kill",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+j",
|
||||||
|
"command": "workbench.action.terminal.focusNext",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+k",
|
||||||
|
"command": "workbench.action.terminal.focusPrevious",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
}
|
||||||
|
]
|
255
vscode/settings.json
Normal file
255
vscode/settings.json
Normal file
@ -0,0 +1,255 @@
|
|||||||
|
{
|
||||||
|
"workbench.iconTheme": "material-icon-theme",
|
||||||
|
"editor.fontFamily": "'Hack Nerd Font Mono', 'Droid Sans Mono', 'monospace', monospace",
|
||||||
|
"terminal.integrated.fontFamily": "Hack Nerd Font Mono",
|
||||||
|
"dart.previewFlutterUiGuides": true,
|
||||||
|
"dart.previewFlutterUiGuidesCustomTracking": true,
|
||||||
|
"workbench.productIconTheme": "material-product-icons",
|
||||||
|
"window.menuBarVisibility": "toggle",
|
||||||
|
"dart.debugExternalPackageLibraries": false,
|
||||||
|
"dart.debugSdkLibraries": false,
|
||||||
|
"tabnine.experimentalAutoImports": true,
|
||||||
|
"markdown-preview-enhanced.previewTheme": "github-dark.css",
|
||||||
|
"files.associations": {
|
||||||
|
"*.css": "tailwindcss"
|
||||||
|
},
|
||||||
|
"tabnine.codeLensEnabled": false,
|
||||||
|
"markdownlint.config": {
|
||||||
|
"MD024": false
|
||||||
|
},
|
||||||
|
"editor.minimap.enabled": false,
|
||||||
|
"vim.leader": "<Space>",
|
||||||
|
"vim.hlsearch": true,
|
||||||
|
"vim.easymotion": true,
|
||||||
|
"vim.useSystemClipboard": true,
|
||||||
|
"vim.normalModeKeyBindings": [
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"J"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
"5",
|
||||||
|
"j"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"K"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
"5",
|
||||||
|
"k"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"w"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
":w"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"q"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
":q"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"i"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"editor.action.formatDocument"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"s"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.splitEditorDown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"v"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.splitEditorRight"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"j"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.focusBelowGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"k"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.focusAboveGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"h"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.focusLeftGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"l"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.focusRightGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"J"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.moveEditorToBelowGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"K"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.moveEditorToAboveGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"H"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.moveEditorToLeftGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"L"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.moveEditorToRightGroup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"r"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"editor.action.rename"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"f"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.action.quickOpen"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
";"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"editor.action.showHover"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"<Enter>"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"editor.action.revealDefinition"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Tab>"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
">",
|
||||||
|
">"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<S-Tab>"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
"<",
|
||||||
|
"<"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vim.insertModeKeyBindings": [
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"j",
|
||||||
|
"k"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
"<Esc>"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vim.visualModeKeyBindings": [
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"j",
|
||||||
|
"k"
|
||||||
|
],
|
||||||
|
"after": [
|
||||||
|
"<Esc>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Tab>"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"editor.action.indentLines"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<S-Tab>"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"editor.action.outdentLines"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vim.smartRelativeLine": true
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user