Skip to content

Instantly share code, notes, and snippets.

@rain1024
Last active March 8, 2023 08:53
Show Gist options
  • Save rain1024/54b58ad60a3c2eaebf4bc9bcece68329 to your computer and use it in GitHub Desktop.
Save rain1024/54b58ad60a3c2eaebf4bc9bcece68329 to your computer and use it in GitHub Desktop.
Python with VSCode

File .vscode/lauch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Current File",
      "type": "python",
      "request": "launch",
      "program": "${file}",
      "console": "integratedTerminal",
      "justMyCode": true,
      "args": [""],
      "env": {"PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}"},
      "cwd": "${fileDirname}"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment