-
Notifications
You must be signed in to change notification settings - Fork 0
/
codejam.code-workspace
66 lines (66 loc) · 1.73 KB
/
codejam.code-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"folders": [
{
"path": "."
}
],
"tasks": {
"version": "2.0.0",
// attempt to run a command before debugging a python file. Still no workaround available
// https://github.com/microsoft/vscode/issues/79932
"tasks": [
{
"label": "set conda env to py37",
"type": "process",
"command": "cmd",
"args": [
"/C",
"conda 'activate py37'",
],
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
// https://stackoverflow.com/questions/59060237/how-to-setup-visual-studio-code-stdin-stdout-redirection-for-python-debugger
// https://code.visualstudio.com/docs/editor/debugging#_redirect-inputoutput-tofrom-the-debug-target
{
"name": "Python: debug with pipe",
"type": "python",
"request": "launch",
// "preLaunchTask": "set conda env to py37",
"program": "${file}",
"console": "integratedTerminal",
"args": [
"<",
"${fileDirname}/${fileBasenameNoExtension}.txt"
]
}
],
"compounds": []
},
"settings": {
// use python 3.7 to match codejam platform setup
// https://codingcompetitions.withgoogle.com/codejam/faq#platform
"terminal.integrated.env.windows": {
"BASH_INIT_COMMAND": "conda activate py37"
},
// Using cmd to debug python script as redirection to stdin is causing issue in git bash
"terminal.integrated.automationProfile.windows": {
"path": "C:\\Windows\\System32\\cmd.exe"
},
"[cpp]": {
"editor.tabSize": 4
},
"[python]": {
"editor.tabSize": 2
}
},
"extensions": {
"recommendations": [
"ms-vscode.cpptools",
"ms-python.python"
]
}
}