Last active
August 22, 2020 03:29
-
-
Save yude/d934976dd50e77c3e774b1edf3131e1c to your computer and use it in GitHub Desktop.
tasks.json - Visual Studio Code で C/C++ のコンパイルをいい感じにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "shell", | |
"label": "C/C++: gcc.exe build active file", | |
"command": "gcc.exe へのパス", | |
"args": [ | |
"-g", | |
"${file}", | |
"-o", | |
"${fileDirname}\\${fileBasenameNoExtension}.exe" | |
], | |
"options": { | |
"cwd": "${workspaceFolder}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build" | |
} | |
] | |
} |
(╯°□°)╯︵ ┻━┻
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使い方
.vscode/tasks.json
にこれをコピペ (ファイルがなかったら作成する)