Skip to content

Instantly share code, notes, and snippets.

@vbarboza
Last active August 17, 2021 16:12
Show Gist options
  • Save vbarboza/fd0d8600625a26c2bd5811f92e8319c1 to your computer and use it in GitHub Desktop.
Save vbarboza/fd0d8600625a26c2bd5811f92e8319c1 to your computer and use it in GitHub Desktop.
VSCode Settings for Python
{
"breadcrumbs.enabled": true,
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "material-icon-theme",
"workbench.editor.enablePreview": false,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "boundary",
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": false,
"editor.formatOnSaveMode": "modifications",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration",
"editor.rulers": [
80,
100,
120
],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"editor.dragAndDrop": false,
"editor.accessibilitySupport": "off",
"editor.copyWithSyntaxHighlighting": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"diffEditor.ignoreTrimWhitespace": false,
"files.exclude": {
"**/.git": true,
"**/.pytest_cache": true,
"**/.hypothesis": true,
"**/__pycache__": true,
},
"[ruby]": {
"editor.tabSize": 2
},
"ruby.useBundler": true,
"ruby.useLanguageServer": true,
"ruby.lint": {
"rubocop": {
"lint": true,
"useBundler": true,
"forceExclusion": true // for ignoring the excluded files from rubocop.yml
},
},
"ruby.intellisense": "rubyLocate",
"ruby.codeCompletion": "rcodetools",
"ruby.format": "rubocop",
"ruby.rubocop.onSave": true,
"[javascript]": {
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"sort-imports.on-save": true,
"[c]": {
"editor.tabSize": 4
},
"[cpp]": {
"editor.tabSize": 4
},
"[python]": {
"editor.tabSize": 4
},
"python.formatting.yapfPath": "/usr/local/lib/python3.9/site-packages/yapf",
"python.terminal.activateEnvironment": true,
"python.envFile": "",
"python.venvPath": "~/.virtualenvs",
"python.globalModuleInstallation": true,
"python.analysis.completeFunctionParens": true,
"python.languageServer": "Pylance",
"python.autoComplete.addBrackets": true,
"python.formatting.provider": "yapf",
"python.linting.flake8Enabled": true,
"python.linting.pydocstyleEnabled": true,
"python.pythonPath": "python3",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment