The Prompt Editor is a powerful VS Code extension for effortless management of AI prompts, enabling seamless import, search, organization, insertion, editing, and reuse of prompt snippets.
The extension is built using TypeScript and integrates with the Visual Studio Code API for editor interaction, UI creation, and file operations. It provides a keyboard-driven user interface inspired by the Raycast app for efficient prompt management. The extension does not require any external API integration or custom API usage.
The project structure includes:
src/extension.ts
: The main extension code.src/test/extension.test.ts
: Extension tests.data/prompts.json
: Centralized metadata for curated prompts.prompts/curated/
: Folder for curated prompts with metadata.prompts/raw/
: Folder for importing raw prompts from text files.
- Intuitive keyboard-driven interface for efficient prompt handling.
- Advanced search capabilities for finding prompts by name, type, tags, and other metadata.
- Metadata management tools for organizing, tagging, and categorizing prompts.
- Easy import of prompts from raw text files into a curated library.
- Integration with Visual Studio Code for seamless insertion of prompts into the editor.
- Visual Studio Code
- Node.js (for extension development)
- Clone the repository or download the extension files.
- Open the project folder in Visual Studio Code.
- Run the
npm install
command to install dependencies. - Press
F5
to launch the extension in the VS Code Extension Host. - Use the keyboard-driven interface to manage and insert prompts.
This extension contributes the following settings:
promptEditor.enable
: Enable/disable this extension.promptEditor.showRawPrompts
: Show raw prompts in the search results.
- Search prompt by path
- Search and insert prompt from external file
- Search prompt by type
- Search and filter by tags
- Trigger and insert prompt inline in editor
- Build prompt using multiple blocks
- Prompt insertion may not work correctly in certain file types or programming languages.
- Large prompt libraries may impact performance.
Initial release of the Prompt Editor VS Code extension.
- Added search prompt by path.
Copyright (c) 2024.