SnippetCraft is a lightweight, persistent VS Code extension designed for developers and competitive programmers to create, store, and auto-complete custom code templates using simple keywords in seconds.
Features
- Quick Snippet Creation: Easily create and edit templates for any programming language directly from the Command Palette.
- Global Persistence: Your saved snippets are stored securely via VS Code's global state, making them available across all your local projects.
- IntelliSense Auto-Complete: Type your custom trigger keywords in any file, and your snippets will instantly appear in the auto-complete dropdown.
Requirements
- Visual Studio Code (Version 1.85.0 or higher)
Installation & Usage
- Open the Command Palette using
Ctrl + Shift + P(orCmd + Shift + Pon Mac). - Type and select
SnippetCraft: Create or Edit Snippet. - Select your programming language (e.g.,
cpp,python,javascript). - Enter your custom trigger keyword.
Important Keyword Restriction: Your keyword must not contain any spaces (e.g., use
dsu,bfs, orbinarysearchinstead ofmy template). VS Code's auto-complete engine requires single continuous words to match properly. - Write or edit your code template in the opened editor tab.
- Click the
Save Snippetbutton in the bottom-right notification popup. - Open any file of that language, type your keyword, and press
TaborEnterto inject your template instantly!