插件配置
- ctrl+shift+p
- 选择“Preferences: Open Settings(JSON)”
- 粘贴下面的json配置
{
"liveServer.settings.host": "192.168.7.131",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"vim.useSystemClipboard": true,
"terminal.integrated.copyOnSelection": true,
//liubalong set
"vim.handleKeys": {
"<C-c>": false,
"<C-a>": false,
"<C-v>": false,
"<C-f>": false,
"<C-d>": false,
"<C-g>": false,
"<C-r>": false,
"<C-x>": false,
"<C-w>": false,
"tab": false,
},
"editor.snippetSuggestions": "top",
"editor.fontSize": 14,
"workbench.sideBar.location": "left",
//end liubaolong set
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.flake8Args": [
"--disable=E1101",
"--max-line-length=5000"
],
"python.formatting.autopep8Args":["--max-line-length", "5000","--experimental"],
"python.formatting.blackArgs":["--line-length 5000"],
"explorer.confirmDragAndDrop": false,
"liveServer.settings.donotShowInfoMsg": true,
"liveServer.settings.donotVerifyTags": true,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"lit-html.tags": [
"html",
"raw",
"template"
],
"terminal.integrated.shell.linux": "/bin/bash",
"files.associations": {
"*.esp": "html",
"*.es": "javascript"
},
"C_Cpp.clang_format_fallbackStyle": "WebKit",
// "C_Cpp.formatting" : "Disabled",
"astyle.additional_languages": [
"c",
"cpp",
],
"astyle.cmd_options":[
"--suffix=none",
"--style=java",
"-p",
"--convert-tabs",
"--indent-preproc-block",
"--indent-preproc-cond",
"--indent-col1-comments",
],
"editor.codeActionsOnSave": null,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"editor.renderWhitespace": "all",
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.codeLens.enabled": false,
"gitlens.statusBar.enabled": false,
"gitlens.hovers.enabled": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.wordWrapColumn": 1000,
"editor.wordWrap": "wordWrapColumn",
"timeline.excludeSources": [],
"gitlens.views.commits.files.threshold": 10,
"gitlens.views.commits.pullRequests.showForBranches": false,
"gitlens.views.commits.pullRequests.enabled": false,
"gitlens.views.commits.files.layout": "tree",
"gitlens.views.commits.avatars": false,
"cmake.autoSelectActiveFolder": false,
"cmake.buildBeforeRun": false,
"cmake.configureOnOpen": false,
"cmake.saveBeforeBuild": false,
"cmake.clearOutputBeforeBuild": false,
"cmake.loggingLevel": "info",
"cmake.configureOnEdit": false,
"window.zoomLevel": -1,
"doxdocgen.generic.authorEmail": "liu.bao.long.vk@gmail.com",
"doxdocgen.generic.authorName": "vk",
"files.autoGuessEncoding": true,
"git.autofetch": true,
}
快捷键配置
- ctrl+shift+p
- 选择“Preferences: Open Keyboard Shortcuts(JSON)”
- 粘贴下面的json配置
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+.",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+,",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+alt+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "shift+tab",
"command": "editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+[",
"command": "-editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+]",
"command": "-extension.vim_ctrl+]",
"when": "editorTextFocus && vim.active && vim.use<C-]> && !inDebugRepl"
},
{
"key": "ctrl+[",
"command": "-extension.vim_ctrl+[",
"when": "editorTextFocus && vim.active && vim.use<C-[> && !inDebugRepl"
},
{
"key": "tab",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+]",
"command": "-editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+u ctrl+p",
"command": "editor.action.transformToUppercase"
}
]