-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtasks.json
56 lines (56 loc) · 1.29 KB
/
tasks.json
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
// 除非您清楚您在做什么,否则请勿修改此文件。
// VS Code 任务设置
{
"version": "2.0.0",
"tasks": [
// 更新 IntelliSense 任务
{
"label": "update intellisense",
"command": "xmake",
"args": [
"project",
"-k",
"compile_commands",
"${workspaceFolder}\\.vscode"
],
"presentation": {
"echo": true,
"reveal": "never",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"problemMatcher": []
},
// 构建任务(Ctrl + Shift + B)
{
"label": "xmake build",
"group": {
"kind": "build",
"isDefault": true
},
"command": "xmake",
"presentation": {
"echo": true,
"reveal": "never",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"problemMatcher": "$gcc" // 如果你使用 MSVC,请更改为 $msCompile
},
// 运行任务(F6)
{
"label": "run and pause",
"dependsOn": "xmake build",
"type": "pause-console",
"command": "xmake",
"args": [
"r"
],
"problemMatcher": []
}
]
}