VS Code C/C++ 환경 설정

이주현·2023년 12월 21일
0

Linux

목록 보기
5/6
  • .vscode
    • tasks.json 컴파일러 빌드 세팅
      {
        "tasks": [
            {
                "type": "cppbuild",
                "label": "C: gcc 활성 파일 빌드",
                "command": "/usr/bin/gcc",
                "args": [
                    "-fdiagnostics-color=always",
                    "-g",
                    "${file}",
                    "-o",
                    "${fileDirname}/${fileBasenameNoExtension}.out"
                ],
                "options": {
                    "cwd": "${fileDirname}"
                },
                "problemMatcher": [
                    "$gcc"
                ],
                "group": {
                    "kind": "build",
                    "isDefault": true
                },
                "detail": "컴파일러: /usr/bin/gcc"
            },
            {
                "type": "cppbuild",
                "label": "C++: g++ 활성 파일 빌드",
                "command": "/usr/bin/g++",
                "args": [
                    "-fdiagnostics-color=always",
                    "-g",
                    "${file}",
                    "-o",
                    "${fileDirname}/${fileBasenameNoExtension}.out"
                ],
                "options": {
                    "cwd": "${fileDirname}"
                },
                "problemMatcher": [
                    "$gcc"
                ],
                "group": {
                    "kind": "build",
                    "isDefault": true
                },
                "detail": "컴파일러: /usr/bin/g++"
            }
        ],
        "version": "2.0.0"
      }
    • launch.json 디버거 세팅
profile
까먹고.. 또 까먹고... 휴..

0개의 댓글