launch.json
{
// IntelliSense를 사용하여 가능한 특성에 대해 알아보세요.
// 기존 특성에 대한 설명을 보려면 가리킵니다.
// 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요.
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
tasks.json
{
"version": "2.0.0",
"runner": "terminal",
"type": "shell",
"echoCommand": true,
"presentation" : { "reveal": "always" },
"tasks": [
//C++ 컴파일
{
"label": "save and compile for C++",
"command": "g++",
"args": [
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"group": "build",
//컴파일시 에러를 편집기에 반영
//참고: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher
"problemMatcher": {
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
// The regular expression.
//Example to match: helloWorld.c:5:3: warning: implicit declaration of function 'prinft'
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
//C 컴파일
{
"label": "save and compile for C",
"command": "gcc",
"args": [
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"group": "build",
//컴파일시 에러를 편집기에 반영
//참고: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher
"problemMatcher": {
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
// The regular expression.
//Example to match: helloWorld.c:5:3: warning: implicit declaration of function 'prinft'
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
// 바이너리 실행(Ubuntu)
{
"label": "execute",
"command": "cd ${fileDirname} && ./${fileBasenameNoExtension}",
"group": "test"
}
]
}
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 13 | TwoVoice Prototye Demo |
LINEARJUN
|
2019.06.04 | 307 |
| 12 | christmas page 열어줘요 어디에 있나요 1 |
fkaus567@gmail.com
|
2019.09.11 | 338 |
| 11 | Visual Studio Code에서 Remote-SSH 문제 1 |
LINEARJUN
|
2019.10.01 | 761 |
| 10 | 등업부탁드려요~~ |
머봉이
|
2019.10.02 | 297 |
| 9 | BFS BRING ME HERE!! 1 |
머봉이
|
2019.10.02 | 330 |
| 8 | 시놀로지 GCC 설치 1 |
LINEARJUN
|
2019.10.28 | 576 |
| vscode c, c++ 컴파일 세팅 |
김준땡
|
2019.10.28 | 299 | |
| 6 | 유니티 최적화 팁 - 퍼옴 6 |
LINEARJUN
|
2019.11.10 | 606 |
| 5 | The definition of Love. 1 |
Anonymous
|
2020.11.13 | 1509 |
| 4 | 이거 보셈 5 |
익명
|
2022.03.14 | 304 |
| 3 | 돈 모아서 차 한대 뽑았습니다 ^^ 2 |
LINEARJUN
|
2022.03.14 | 317 |
| 2 | 사이트 주인장은 보시오 2 |
머봉이
|
2022.04.13 | 353 |
| 1 | 오랜만입니다 |
익명
|
2025.09.18 | 6 |
LINEARJUN
머봉이
0개의 댓글