Prompt Pilot
Build, save and manage context-aware prompts from files and editor selections inside VS Code.
Commands
Prompt Pilot: Open — Open the Prompt Pilot webview.
Prompt Pilot: Add File to Prompt Pilot — Add a file from the Explorer to the builder.
Prompt Pilot: Add Selection to Prompt Pilot — Add the current editor selection to the builder.
Development
- Install dev dependencies:
npm install
- Compile once:
npm run compile
- Or start the watch compiler and run the extension (F5):
npm run watch
# then press F5 and choose "Run Extension"
Features
- Add files or selected editor text into a prompt
- Insert instructions between snippets
- Auto-save the current prompt to history (keeps latest version)
- Load saved prompts from history and rename or delete them
- Copy the assembled prompt to clipboard
Package & Publish
Ensure you have vsce installed globally:
npm install -g vsce
To create a packaged .vsix:
npm run package
To publish (requires a publisher and a Personal Access Token):
npm run publish
Notes:
- Set the
publisher field in package.json to your publisher ID (create a publisher at https://marketplace.visualstudio.com/manage).
- Generate a Personal Access Token on Azure DevOps with the
Marketplace (Publish) scope and follow the vsce prompts.
Contributing
PRs welcome. Keep changes small and run npm run compile before opening a PR.
License
MIT
| |