Code Caffeine Snippet Manager
Manage and organize your code snippets effortlessly with Code Caffeine Snippet Manager. This VS Code extension allows you to add, store, and access your favorite code snippets quickly, helping you boost productivity and maintain a clean development environment.
Features
- Add Snippets: Easily store code snippets with a simple command.
- List Snippets: View a list of all your stored snippets and access them quickly.
- Categorize Snippets: Optionally categorize snippets for better organization.
- Snippet Search: Quickly search for specific snippets by name or category.
- Flexible Usage: Add your own custom snippets for repetitive tasks or commonly used code.
Requirements
- Visual Studio Code version
1.95.0
or higher.
Installation
To install the Code Caffeine Snippet Manager extension, follow these steps:
- Open VS Code.
- Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window.
- Search for
Code Caffeine Snippet Manager
in the Extensions Marketplace.
- Click Install on the
Code Caffeine Snippet Manager
extension.
- Once installed, you can start using the extension by accessing the commands in the command palette (
Ctrl+Shift+P
or Cmd+Shift+P
).
Alternatively, you can install the extension directly from the VSIX file if you prefer not to use the marketplace.
Commands
The extension adds the following commands to your command palette:
- Add Snippet: Store a new code snippet.
- List Snippets: View a list of all stored snippets.
To use these commands:
- Press
Ctrl+Shift+P
(or Cmd+Shift+P
on macOS) to open the command palette.
- Type the command name:
- Add Snippet: Prompts you to enter a snippet.
- List Snippets: Displays a list of all your saved snippets.
Usage
Add Snippet
- To add a new snippet, run the Add Snippet command from the command palette.
- You will be prompted to enter the snippet name and the code itself.
- Optionally, add a description and categorize the snippet for easier access later.
List Snippets
- To view all your saved snippets, run the List Snippets command.
- A list of snippets will be shown in a quick pick dropdown, allowing you to easily copy the desired snippet into your current file.
Managing Snippets
- Search: Use the snippet search functionality to find specific snippets quickly.
- Edit/Delete: The extension is designed to integrate with the workspace, so you can manage your snippets from a settings file or easily modify them.
Customization
At the moment, the extension doesn’t require custom settings. However, future updates may introduce customizable options for managing snippet categories, themes, and more.
Known Issues
- Currently, the extension doesn't support exporting snippets to an external file or importing from one.
- There may be minor issues with snippet display when using certain font settings in VS Code.
Release Notes
0.0.1
- Initial release with functionality for adding and listing code snippets.
Contributing
Feel free to fork the repository and submit issues or pull requests. Any contributions are welcome!
License
This extension is open-source and licensed under the MIT License.