Skip to content

Instantly share code, notes, and snippets.

@kobybibas
Last active July 3, 2022 07:31
Show Gist options
  • Save kobybibas/20ad44790dfd439a4cf882f6e83df2aa to your computer and use it in GitHub Desktop.
Save kobybibas/20ad44790dfd439a4cf882f6e83df2aa to your computer and use it in GitHub Desktop.
.vscode/launch.json so that the cwd will be the file folder
// launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"cwd": "${fileDirname}",
"justMyCode": true,
# "args": ["--key1", "value1", "value2", "--key2", "value3", "value4"] # for script args
}
]
}
// settings.json:
{
"python.formatting.provider": "black",
"editor.formatOnSave": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment