ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Среда
24 июля
1419248 Топик полностью
Andreas (26.03.2024 10:01, просмотров: 105) ответил VVB на В VSCode кто-нибудь работает? Я его пробую на вкус, есть вопросы по интеграции с CMake и gcc
У меня такой task.json, кусок парсера просто гуглением откуда-то выдрал. Но это винда. 

"version": "2.0.0",

"taskDir": "${workspaceFolder}", //< the shell first changes pwd to this then executes command

"options": {

"cwd": "${workspaceFolder}",

},

"presentation": {

"clear": true

},

"command": "make",

"problemMatcher": {

"base": "$gcc",

"fileLocation": ["relative", "${workspaceFolder}\\token"],

"pattern": {

"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",

"file": 1,

"line": 2,

"column": 3,

"severity": 4,

"message": 5

}

},

"tasks": [

{

"label": "build",

"type": "shell",

"args": ["-j15" ],

"group": {

"kind": "build",

"isDefault": true

}

},

{

"label": "clean",

"type": "shell",

"args": ["clean" ],

"group": {

"kind": "build",

"isDefault": true

}

},

{

"command": "\"C:/'Program Files'/SEGGER/JLink/JLink.exe\" -CommanderScript cmd.jlk",

// "command": "\"C:/'Program Files'/SEGGER/JLink/JLink.exe \"",

"label": "prog",

"type": "shell",

// "args": [" -CommanderScript cmd.jlk" ],

"group": {

"kind": "build",

"isDefault": true

}

}

]

}