From 4bd3f024be3e63eaab7eb2f0af43d10d91747cac Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 22 May 2023 12:57:56 +0100 Subject: [PATCH] Add VSCode config --- .config/VSCodium/User/keybindings.json | 15 +++++ .config/VSCodium/User/settings.json | 89 ++++++++++++++++++++++++++ .config/VSCodium/product.json | 6 ++ 3 files changed, 110 insertions(+) create mode 100644 .config/VSCodium/User/keybindings.json create mode 100644 .config/VSCodium/User/settings.json create mode 100644 .config/VSCodium/product.json diff --git a/.config/VSCodium/User/keybindings.json b/.config/VSCodium/User/keybindings.json new file mode 100644 index 0000000..4649a26 --- /dev/null +++ b/.config/VSCodium/User/keybindings.json @@ -0,0 +1,15 @@ +// Empty +[ + { + "key": "ctrl+j", + "command": "-workbench.action.togglePanel" + }, + { + "key": "ctrl+j", + "command": "editor.action.joinLines" + }, + { + "key": "alt+f", + "command": "extension.quote-flipper" + } +] diff --git a/.config/VSCodium/User/settings.json b/.config/VSCodium/User/settings.json new file mode 100644 index 0000000..14ab61c --- /dev/null +++ b/.config/VSCodium/User/settings.json @@ -0,0 +1,89 @@ +{ + "[html]": { + "editor.defaultFormatter": "vscode.html-language-features" + }, + "[javascript]": { + "editor.defaultFormatter": "vscode.typescript-language-features" + }, + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, + "[terraform-vars]": { + "editor.defaultFormatter": "hashicorp.terraform", + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file" + }, + "autoDocstring.startOnNewLine": true, + "diffEditor.renderSideBySide": false, + "editor.codeActionsOnSave": { + "source.organizeImports": true + }, + "editor.formatOnSave": true, + "editor.renderControlCharacters": true, + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.trimTrailingWhitespace": true, + "files.watcherExclude": { + "**/.git/**": true, + "**/.mypy_cache/**": true, + "**/.pyenv/**": true, + "**/__pycache__/**": true + }, + "git.alwaysShowStagedChangesResourceGroup": true, + "git.autoStash": true, + "git.autofetch": true, + "git.confirmSync": false, + "git.enableCommitSigning": true, + "git.ignoreRebaseWarning": true, + "git.suggestSmartCommit": false, + "html.format.indentInnerHtml": true, + "html.format.templating": true, + "python.diagnostics.sourceMapsEnabled": true, + "python.experiments.enabled": false, + "python.linting.enabled": true, + "python.terminal.activateEnvInCurrentTerminal": true, + "python.testing.unittestArgs": ["-v", "-s", ".", "-p", "test_*.py"], + "python.testing.unittestEnabled": true, + "redhat.telemetry.enabled": false, + "simple-perl.perltidyArgs": ["-l=140", "-gnu", "-ci=4"], + "svg.preview.mode": "svg", + "vsicons.dontShowNewVersionMessage": true, + "window.newWindowDimensions": "inherit", + "workbench.colorTheme": "Solarized Dark", + "workbench.editor.historyBasedLanguageDetection": true, + "workbench.enableExperiments": false, + "workbench.iconTheme": "vscode-icons", + "workbench.startupEditor": "none", + "python.analysis.completeFunctionParens": true, + "python.analysis.diagnosticMode": "workspace", + "json.maxItemsComputed": 500000, + "editor.foldingMaximumRegions": 50000, + "python.analysis.typeCheckingMode": "basic", + "indentRainbow.tabmixColor": "rgba(128,32,96,0.2)", + "scm.diffDecorationsGutterAction": "none", + "diffEditor.codeLens": true, + "git.openDiffOnClick": false, + "[yaml]": { + "editor.defaultFormatter": "redhat.vscode-yaml" + }, + "python.linting.maxNumberOfProblems": 20, + "python.linting.pylintCategorySeverity.convention": "Warning", + "python.linting.mypyCategorySeverity.note": "Warning", + "python.linting.pylintCategorySeverity.refactor": "Warning", + "[jinja-html]": { + "editor.defaultFormatter": "vscode.html-language-features" + }, + "pylint.severity": { + "refactor": "Information" + }, + "files.autoSaveDelay": 2000, + "files.autoSave": "afterDelay", + "css.format.enable": false, + "python.analysis.autoImportCompletions": true, + "python.analysis.stubPath": "", + "mypy.enabled": false, + "python.analysis.enablePytestSupport": false +} diff --git a/.config/VSCodium/product.json b/.config/VSCodium/product.json new file mode 100644 index 0000000..594f87f --- /dev/null +++ b/.config/VSCodium/product.json @@ -0,0 +1,6 @@ +{ + "extensionsGallery": { + "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", + "itemUrl": "https://marketplace.visualstudio.com/items" + } +}