A lightweight, file-based Visual Studio Code extension designed specifically for competitive programmers. Instantly access your boilerplate and custom C++ algorithms without leaving your editor.
Features
File-Based Storage: Your snippets are stored locally in ~/.cp-vault. No cloud syncing required; edit your templates like normal .cpp files.
Intelligent Autocomplete: Type @cp. in any C++ file to instantly view and insert your saved algorithms (e.g., @cp.dijkstra, @cp.dsu).
Quick Save: Highlight any code in your editor, press Shift + S, name it, and it's instantly saved to your vault for future contests.
Auto-Initialization: Automatically generates a standard CP boilerplate (init) and pre-loads essential algorithms the first time you open a C++ file.
Usage
Open any .cpp file to initialize your vault.
Type @cp. to trigger the snippet dropdown.
Highlight code and use Shift + S (or right-click -> Command Palette -> CP: Save Helper Function) to save a new template.
Modifying Your Vault
Navigate to your home directory and open the .cp-vault folder:
Edit boilerplate.cpp to change your standard main() setup.
Edit snippets.cpp to manually adjust your saved functions. Ensure each function is preceded by the // @cp: function_name tag.