Skip to content

Instantly share code, notes, and snippets.

@jabbalaci
Last active September 6, 2019 12:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabbalaci/e4d03b173d7bfdfeefa86d54a9cc8acd to your computer and use it in GitHub Desktop.
Save jabbalaci/e4d03b173d7bfdfeefa86d54a9cc8acd to your computer and use it in GitHub Desktop.
Visual Studio Code settings for Python development
Corresponding video: https://www.youtube.com/watch?v=XVQ5drokE6E (in Hungarian)
settings.json
=============
{
"workbench.colorTheme": "Default Light+",
"editor.fontSize": 18,
"editor.minimap.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.enabledWithoutWorkspace": false,
// "python.linting.pylintArgs": [
// "--errors-only"
// ],
"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe",
"code-runner.clearPreviousOutput": true,
"code-runner.showExecutionMessage": false,
"workbench.iconTheme": "vscode-icons",
"[markdown]": {
"editor.quickSuggestions": false
},
"window.zoomLevel": 0,
"trailing-spaces.includeEmptyLines": false,
"trailing-spaces.trimOnSave": true,
"files.insertFinalNewline": true,
"editor.roundedSelection": false,
"files.exclude": {
"**/.git": true,
".vscode": true,
"**/__pycache__": true,
"**/**/*.pyc": true
}
// "editor.rulers": [100],
}
keybindings.json
================
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+f5",
"command": "workbench.action.reloadWindow",
"when": "editorTextFocus"
}
]
snippets/python.json
====================
{
/*
// Place your snippets for Python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"alap": {
"prefix": "alap",
"body": [
"#!/usr/bin/env python3",
"",
"def main():",
" print(\"$0Py3\")",
"",
"##############################################################################",
"",
"if __name__ == \"__main__\":",
" main()"
],
"description": "basic skeleton for Python 3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment