Skip to content

Instantly share code, notes, and snippets.

@jlmelville
Last active October 11, 2023 00:58
Show Gist options
  • Save jlmelville/74d8fe778b0d89574e82ffe47c1e49ae to your computer and use it in GitHub Desktop.
Save jlmelville/74d8fe778b0d89574e82ffe47c1e49ae to your computer and use it in GitHub Desktop.
VS Code settings for Linux
{
"[html]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
},
"[markdown]": {
"editor.rulers": [
100
],
"editor.tabSize": 2
},
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.formatOnSave": true,
"editor.rulers": [
88
],
"liveServer.settings.port": 5001,
"python.formatting.blackPath": "${workspaceFolder}/venv/bin/black",
"python.formatting.provider": "black",
"python.linting.banditArgs": [
"-c",
"${workspaceFolder}/lint/bandit.yml",
"-q"
],
"python.linting.banditEnabled": false,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--config",
"lint/.flake8"
],
"python.linting.maxNumberOfProblems": 1000,
"python.linting.mypyEnabled": false,
"python.linting.prospectorArgs": [
"--profile",
"${workspaceFolder}/lint/.prospector.yaml"
],
"python.linting.prospectorEnabled": false,
"python.linting.pycodestyleEnabled": false,
"python.linting.pycodestylePath": "pycodestyle",
"python.linting.pydocstyleEnabled": false,
"python.linting.pylamaEnabled": false,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--rcfile",
"${workspaceFolder}/lint/.pylintrc"
],
"python.linting.pylintCategorySeverity.refactor": "Information",
"python.linting.pylintUseMinimalCheckers": false,
"python.pythonPath": "${workspaceFolder}/venv/bin/python",
"python.sortImports.args": [
"--multi-line=3",
"--trailing-comma",
"--force-grid-wrap=0",
"--use-parentheses",
"--line-width=88"
],
"python.sortImports.path": "${workspaceFolder}/venv/bin/isort",
"python.venvPath": "${workspaceFolder}/venv",
}
@jlmelville
Copy link
Author

jlmelville commented Nov 2, 2019

This requires:

This should also work with WSL. The editor.formatOnSaveTimeout has been increased to account for the latency introduced by the Remote - WSL extension (see microsoft/vscode-go#2695).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment