온라인저지 VScode 설정

Jmnote bot (토론 | 기여)님의 2020년 7월 31일 (금) 21:30 판 (봇: 비주얼스튜디오 코드을(를) Vscode(으)로 분류 대체함)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

C++[ | ]

  • 소스코드파일: a.cpp
  • 입력파일: input.txt
  • 실행단축키: Ctrl+F5
launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) Launch",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${workspaceFolder}/a.exe",
            "args": ["<","input.txt"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
			"environment": [],
			"externalConsole": false,
			"internalConsoleOptions": "openOnSessionStart",
            "preLaunchTask": "build a",
        }
    ]
}
tasks.json
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build a",
            "type": "shell",
            "command": "g++",
            "args": ["-g","a.cpp"]
        }
    ]
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}