Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CP Helper VaultNew to Visual Studio Code? Get it now.
CP Helper Vault

CP Helper Vault

Shounak Mushib

|
1 install
| (0) | Free
File-based CP snippets with autocomplete.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CP Helper Vault

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

  1. Open any .cpp file to initialize your vault.
  2. Type @cp. to trigger the snippet dropdown.
  3. 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.

Developed by Shounak Mushib

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft