VS-Code
Shortcuts
Strg+"g" | Springe zu Zeile |
Strg+"P" | VSCODE Command Palette... |
Plugins
General
- Git History
- Live Preview
- Remote - SSH
- Remote Explorer
- SQLite Viewer
- Todo Tree
- vscode-icons
- (Bracket Pair Color DLW)
- (German Language Pack for Visual Studio Code)
- (Live Preview)
Python
- autoDocstring
- autopep8
- Coverage Gutters
- Django
- isort
- MagicPython
- Python
- Python Debugger
Ansible
- Ansible
- ansible-vault
LaTeX
- LaTeX Workshop
Settings (.vscode/settings.json)
autopep8:
"autopep8.args": ["--max-line-length=150"], "python.formatting.provider": "none", "[python]": { "editor.defaultFormatter": "ms-python.autopep8", "editor.formatOnSave": true }, "editor.formatOnSave": true,
font-size
"editor.fontSize": 16,
djangos
"emmet.includeLanguages": { "django-html": "html" },
pytest
Add an empty conftest.py in src-root, put your tests to <src-root>/__test__.
"python.testing.pytestArgs": ["-v", "--cov", "--cov-report=xml", "__test__"], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true
default interpreter
"python.defaultInterpreterPath": "./venv/bin/python",
Launch configuration (<src-root>/.vscode/launch.json)
{ // Verwendet IntelliSense zum Ermitteln möglicher Attribute. // Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen. // Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Python: Main File execution", "type": "python", "request": "launch", "program": "${workspaceFolder}/<FILE_TO_BE_EXECUTED>", "console": "integratedTerminal", "justMyCode": true } ] }