Skip to content

What410802/C--.d

Repository files navigation

Algorithm competition practicing repo. Supports C++ & Python in VSCode. (.vscode/ contains configuration of F9~F11 for VSCode similar to Dev-C++, and an extra Ctrl+F10 to loop running.)

VSCode Configuration for Algorithm Competition (C++ any / Python 3)

Features

  • Using this configuration set, you can use VSCode to write, compile and run C++/Python codes easily! (F9: Compile. F10: Run. F11: Compile & Run.)
  • You can customize compiling options for different OJ: modifying Utility.d/compile_opts.toml is enough. (The corresponding .exe compiled by Rust will do the rest of the work.)

Prerequisites

  • Bun installed on your computer, for looping running. (Or anything you like. :) If you do not need this feature, you can skip this.)

    • Install Bun ( bun.sh);
    • cd Utility.d and bun install.
  • gcc/g++ in your computer and added to the path in environment variables, if you use C++.

  • Having VSCode installed. Copy the contents of .vscode/keybindings.not-here.json to your favorite keybindings.json:

    If you are not using "Profiles" feature in VSCode, then the target keybindings.json is in:

    • %APPDATA%\Code\User (Windows),
    • ~/.config/Code/User (Linux),
    • ~/Library/Application Support/Code/User (MacOS, not sure because I does not have one :( ).

    If you are using a VSCode Profile, then paste it to the keybindings in (your path above)/profiles/(a string of number representing your target profile).

Usage

  • To start with, copy the things inside .vscode/keybindings.not-here.json as Prerequisites describes.
  • For Python input, after inputting all the data needed, use Ctrl+Z to put an end to the input stream. (Enter is needed before and after the Ctrl+Z.)
  • To add more OJs and their C++ standard, just append them to Utility.d/compile_opts.toml.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors