-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.code-workspace
67 lines (61 loc) · 2 KB
/
code.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
67
{
"folders": [
{
"path": "."
}
],
"settings": {
"outline.showConstants": false,
"outline.showVariables": false,
"outline.showStrings": false,
"window.title": "${dirty}${rootName}${separator}${activeEditorMedium}",
"window.titleSeparator": " _ ",
"editor.fontSize": 12, // 字体大小
"terminal.integrated.fontFamily": "monospace",
"editor.fontFamily": "FiraCode Nerd Font, Consolas, 'Courier New', monospace",
"editor.wordWrap": "on",
"notebook.output.wordWrap": true,
// ## path 不同平台符号不同
// ref: https://stackoverflow.com/questions/53653083/how-to-correctly-set-pythonpath-for-visual-studio-code
"terminal.integrated.env.windows": {"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"},
"terminal.integrated.env.linux": {"PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}"},
"terminal.integrated.env.osx": {"PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}"},
// ## jupyter
"jupyter.notebookFileRoot": "${workspaceFolder}",
"jupyter.interactiveWindow.textEditor.executeSelection": true, // 交互模式下执行选中的代码
// "notebook.outline.showCodeCells": true
"notebook.lineNumbers": "on",
// ## python
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"python.languageServer": "Pylance",
"python.analysis.autoImportCompletions": true,
// ## cpp
"code-runner.clearPreviousOutput": true,
"code-runner.ignoreSelection": true,
"code-runner.preserveFocus": false,
"code-runner.runInTerminal": true,
"code-runner.saveAllFilesBeforeRun": true,
"code-runner.saveFileBeforeRun": true,
"C_Cpp.debugShortcut": false,
// 关闭快捷键
},
"launch": {
// debug 运行 python 文件 相对路径
"version": "0.2.0",
"configurations": [
{
"name": "Python: run from project home",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"env": {
"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"
},
}
]
}
}