Skip to content

Instantly share code, notes, and snippets.

@martinandersen3d
Created August 13, 2020 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinandersen3d/7d41888e6d23835af8d20ce0919ab799 to your computer and use it in GitHub Desktop.
Save martinandersen3d/7d41888e6d23835af8d20ce0919ab799 to your computer and use it in GitHub Desktop.
VsCode Python - automatically kill the task terminal after debugging
{
// 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",
"postDebugTask": "postdebugKillTerminal"
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "postdebugKillTerminal",
"type": "process",
"command":[
"${command:workbench.action.terminal.kill}",
],
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment