Skip to content

Commit 1d85c7c

Browse files
committed
Setup VSCode launchers for the Python samples.
1 parent 1cd2b9f commit 1d85c7c

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
// Run the Python samples.
9+
// tcod will be built and installed in editalbe mode.
10+
"name": "Python: Python samples",
11+
"type": "python",
12+
"request": "launch",
13+
"program": "${workspaceFolder}/examples/samples_tcod.py",
14+
"cwd": "${workspaceFolder}/examples",
15+
"console": "integratedTerminal",
16+
"preLaunchTask": "develop python-tcod",
17+
}
18+
]
19+
}

.vscode/tasks.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
// Installs tcod in editable mode.
8+
"label": "develop python-tcod",
9+
"type": "shell",
10+
"command": "python setup.py develop"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)