A Visual Studio Code Extension for Competitive Programmers
Run C/C++ programs with timelimit and input/output redirections focusing competitive programming.
No more freopen and hangups for infinite loops! Break automatically after timelimit.
This extension allows to run program in output channel. It also shows errors(if any) in output channel and how much time the program is taking to run.
timelimit
.Alt+B
to build and run in outputchannel with I/O redirections.Alt+N
to stop program manually.g++
is available in PATH
or setup compiler dirctory in settings.run.compiler
: Set compiler name e.g. g++
if already set in path. Otherwise, full path ${workspaceFolder}\\mingw\\bin\\g++.exe
run.compilerArgs
: Set any optional Arguments separated by spaces for compilation. For example, -O2 -std=c++14
run.timelimit
: Set time limit, maximum amount of time your programm is allowed to run.run.programArgs
: Set arguments to pass for executable program.run.inputFile
: Set Full path of the input file. e.g ${workspaceFolder}\\Input.txt
run.outputFile
: Set Full path of the output file. e.g ${workspaceFolder}\\Output.txt
run.compilerDirectory
: Full path of the Compiler bin Directory. e.g ${workspaceFolder}\\MinGW64\\bin
. (Optional, if already added in environment varible path.)${workspaceFolder}
: substitutes with active workspace folder path.