Overview Version History Q & A Rating & Review
⚡ Fast Olympic Coding ⚡
[!IMPORTANT]
Versions under 1.x saved data formats are NOT stable. Therefore, users should clear their saved data when updating
Do it by using command pallete (Ctrl+P
) and enter Fast Olympic Coding: Clear Saved Data
Fast Olympic Coding is an extension to assist with various tasks in competitive programming. It is a ported and enhanced version of the corresponding Sublime Text plugin that also leverages the power of VSCode.
⚡ Overview
Concurrently run, edit, and delete multiple testcases
Stress tester to find counterexamples
Insert pre-written code in another file without switching tabs!
BLAZINGLY FAST! asynchronous design + optimizations = 99% spam proof!
💻 Keybinds
Compile (if file has compile command and file had changed) and run all testcases: Ctrl+Alt+B
Run stress test: Ctrl+Alt+G
Delete all testcases: Ctrl+Alt+D
Insert file template: Ctrl+Alt+I
Control if the content should be folded via settings.
📝 Todo
Integration with Competitive Companion
Problem parser (and maybe contest parser)
"Emmet" for class types (Class Completion
functionality in original plugin)
</> Setting Up
Provide run settings for the languages you use in settings.json
. Here are some examples for C++, Python, and Java:
{
"fastolympiccoding.runSettings": {
".cpp": {
"compileCommand": "g++ -std=gnu++20 -D_GLIBCXX_DEBUG ${file} -o ${fileDirname}/${fileBasenameNoExtension}${exeExtname} -fdiagnostics-color=always",
"runCommand": "${fileDirname}/${fileBasenameNoExtension}${exeExtname}"
},
".py": {
"runCommand": "python ${file}"
},
".java": {
"compileCommand": "javac ${file}",
"runCommand": "java -cp ${fileDirname} ${fileBasenameNoExtension}"
}
}
}
We can use VSCode's built-in variables as well as ${exeExtname}
that resolves into .exe
for Windows and an empty string for other platforms.
Forward/backward slashes are automatically normalized when being executed.
📜 Testcase Window
Accept outputs to detect wrong answers later!
Compilation errors will be displayed in a popup window.
Very long outputs will be truncated.
👨🏻💻 Stress Tester
Rapidly runs the current solution, the correct solution, and the input generator to find potential counterexamples.
The generator is provided with a random seed to generate the input
Gif is recorded at 10FPS but the tester runs as low as 5ms between testcases!
👜 Other Goodies
Insert code from a pre-written library and automatically folded by VSCode!
📥 How to Install
VSCode Marketplace: Fast Olympic Coding
Command in Quick Open (Ctrl+P
): ext install sam20908.vscode-fastolympiccoding
© Attributions