๋ชฉ์ฐจ
728x90
0. extension ์ค์น
- C/C++
- CodeLLDB
1. launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "${fileDirname}/${fileBasenameNoExtension}.o",
"args": [],
"preLaunchTask": "g++",
"terminal": "integrated"
}
]
}
2. tasks.json
{
"tasks": [
{
"type": "shell",
"label": "g++",
"command": "g++",
"args": [
"-g",
//1. ํค๋ํ์ผ ํฌํจํ๊ณ ์ถ์ ๋
// "${fileDirname}/*.cpp",
//2. ๊ทธ๋ฅ ํ์ผ๋ง ์ปดํ์ผํ๊ณ ์ถ์ ๋
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}.o", //ํ์ผ ๋น๋, ์คํ
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": { //Explained in detail below
"echo": false,
"reveal": "always",
"focus": true,
"panel": "shared",
"clear": false,
"showReuseMessage": false
},
"problemMatcher": [
"$gcc"
]
}
],
"version": "2.0.0"
}
์ด ํค๋ํ์ผ ์ถ๊ฐ ๋๋ถ์ ์์ฃผ ๋จธ๋ฆฌ๊ฐ ์ง๋์ง๋ ์ํ ๋ค...
๊ทธ๋๋ ํด๊ฒฐ!
3. settings.json
{
"explorer.sortOrder": "type",
"files.exclude": {
"**/*.o": true,
"**/*.dSYM": true,
},
"C_Cpp.errorSquiggles": "Disabled",
}
ํ์๊ธฐ๊ฐ ๋๋ฌด ์ง์ ๋ถํด์ ์ ๋ฆฌ์ฉ
4. c_cpp_properties.json
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/g++",
"cStandard": "c17",
"cppStandard": "c++98",
"intelliSenseMode": "macos-clang-x64"
}
],
"version": 4
}
'๐จโ๐ | OTHERS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] .gitignore ์ ์ฉํ๊ธฐ! (0) | 2022.06.30 |
---|---|
[์ฑ ๋ฆฌ๋ทฐ] ์ฝ๋ฉ์ ์ฒ์์ด๋ผ with ์๋ฐ (0) | 2022.05.31 |
VSCODE ๋ณ์, ์ฃผ์ ๋ฑ ์ฝ๋ ์์ ์ค์ ํ๊ธฐ (0) | 2022.03.01 |
[Git] Git ๋ช ๋ น์ด ๋ชจ์ (for me) (0) | 2022.01.30 |
์๋์ฐ์์ wget ์ฌ์ฉํ๊ธฐ! (0) | 2022.01.18 |
๋๊ธ