Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Fast Olympic CodingNew to Visual Studio Code? Get it now.
Fast Olympic Coding

Fast Olympic Coding

sam20908

|
807 installs
| (3) | Free
Competitive programming in VSCode made easy
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

⚡ Fast Olympic Coding ⚡

Testcases Gif

Once a mighty Competitive Programming plugin... Reborn with the powers of VSCode!

⚡ Overview

  • 📜 Minimal and adaptive UI for maximized functionality and view utilization
  • 🐞 Built-in stress tester to aid your debugging
  • 👜 Insert file templates without leaving your code
  • 🛜 Support for Competitive Companion for efficient problem gathering
  • ⚡ BLAZINGLY FAST! Asynchronous design + optimizations = 99% spam proof!

💻 Keybinds

  • Compile and run all testcases: Ctrl+Alt+B
  • Stop all testcases: Ctrl+Alt+K
  • Delete all testcases: Ctrl+Alt+D
  • Save all testcases: Ctrl+Alt+S
  • Run stress test: Ctrl+Alt+G
  • Stop stress test: Ctrl+Alt+H
  • Insert file template: Ctrl+Alt+I

📥 Install within VSCode or at Visual Studio Marketplace


</> 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++ ${path:${file}} -o ${path:${fileDirname}/${fileBasenameNoExtension}${exeExtname}}",
      "runCommand": "${path:${fileDirname}/${fileBasenameNoExtension}${exeExtname}}"
    },
    ".py": {
      "runCommand": "python ${path:${file}}"
    },
    ".java": {
      "compileCommand": "javac ${path:${file}}",
      "runCommand": "java -cp ${fileDirname} ${fileBasenameNoExtension}"
    }
  }
}

We can use the following variables in the syntax of ${...}

  • Most of VSCode's built-in variables
  • ${exeExtname} returns .exe for Windows and an empty string for other platforms
  • ${path:*value*} normalizes *value* into a valid path string for the current platform
Settings per language
  • compileCommand (optional): Command to run before runCommand when the file content changed
  • runCommand: Command to run the solution
  • currentWorkingDirectory (optional): sets the current working directory for runCommand

📜 Judge

The UI adapts to VSCode's theme, font family and font size. Minimalism from the old plugin has been improved with VSCode Codicons and the native look of VSCode. The new UI experience is integrated into both Judge and Stress Tester windows.

  • Run, edit, hide, skip testcases, you name it!
  • Hidden optimizations such as batched IO, truncating huge IO, and cached compilations.
  • Dedicated popup for compiler errors with color support
  • ... and so much more!
Judge Demo Gif
General setting for both Testcase Window and Stress Tester
  • maxDisplayCharacters: Maximum number of characters to display for each output
  • maxDisplayLines: Maximum number of lines to display for each output

🐞 Stress Tester

Required files (naming scheme can be configured in settings):

  • <name>.[ext]: the solution to bruteforce against

  • <name>__Good.[ext]: the solution that outputs the correct answer

  • <name>__Generator.[ext]: to generate inputs for the other 2 files

    • The extension provides a 64-bit integer seed input for random number generators!
  • 💡TIP: To stress test for Runtime Error instead of Wrong Answer, have the good solution be the same as the one to bruteforce against!

Stress Tester Gif
Stress Tester was able to find an counterexample due to an integer overflow bug!
Settings for Stress Tester
  • goodSolutionFile: Full path for good solution file (supports ${...})
  • generatorFile: Full path for generator file (supports ${...})
  • delayBetweenTestcases: Amount of delay between generated testcases in milliseconds (minimum: 5)
  • stressTestcaseTimeLimit: Maximum time in milliseconds the Stress Tester is allowed to spend on one testcase (0 for no limit)
  • stressTimeLimit: Maximum time in milliseconds the Stress Tester is allowed to run (0 for no limit)

👜 Inserting Prewritten Code

  • Add the root directory of the templates to the settings
  • NOTE: Remove trailing newlines for fold to work (folding is optional via settings)
    • Folding depends on VSCode support, which may require other extensions depending on the language.
Insert File Template Gif
Adding a tree reroot DP template without switching files
Possible settings
  • fileTemplatesBaseDirectory: Full path to the base directory of all prewritten files (supports ${...})
  • fileTemplatesDependencies (optional): Maps a template path relative to base directory to a list of other relative template paths that this one depends on
  • foldFileTemplate (default: false): Whether to fold the newly inserted prewritten code

🛜 Competitive Companion

Problem Parsing Gif
Using Competitive Companion to parse a CodeForces problem
Contest Parsing Gif
We can parse an entire CodeForces Contest!
Settings for Competitive Companion integration
  • openSelectedFiles (default: true): Whether to open all the selected files
  • askForWhichFile (default: false): Ask for which file to write testcase onto, even when a file is currently opened and only a single problem has been received
  • includePattern (default: **/*): Glob pattern to filter in the included files for asking prompt
  • excludePattern (default: empty): Glob pattern to filter out the included files for asking prompt
  • port (default: 1327): Port number to listen from Competitive Companion

© Attributions

  • FastOlympicCoding: The original Sublime Text package that inspired this extension 💖
  • Flaticon: Icon for this extension 💖
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft