Created
September 23, 2025 16:15
-
-
Save iamhimangshude/09939bfc44ca045e0b7fe6a8b41bf302 to your computer and use it in GitHub Desktop.
A configurable vscode task.json file for competitive programming for linux and mac systems
This file contains hidden or 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": [ | |
| { | |
| "label": "compile", | |
| "type": "shell", | |
| "command": "g++", | |
| "args": [ | |
| "-std=c++17", | |
| "-o", | |
| "${fileBasenameNoExtension}", | |
| "${file}" | |
| ], | |
| "group": { | |
| "kind": "build", | |
| "isDefault": false | |
| } | |
| }, | |
| { | |
| "label": "compile and run", | |
| "type": "shell", | |
| "command": "g++ -std=c++17 -o ${fileBasenameNoExtension} ${file} && ./${fileBasenameNoExtension} < input.txt > output.txt", | |
| "group": { | |
| "kind": "build", | |
| "isDefault": true | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment