Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DevPromptNew to Visual Studio Code? Get it now.
DevPrompt

DevPrompt

Linh Hoang

|
1 install
| (0) | Free
| Sponsor
Generate precise AI prompts from your code — Fix Bug, Refactor, Explain, Test, Optimize. Supports 12 languages with language-specific templates and smart context detection.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DevPrompt

Generate precise, context-aware AI prompts from your code — right inside VS Code.

PayPal


Commands

Command Shortcut Description
Generate Prompt Cmd+Shift+/ Pick an intent → pick a style → prompt copied to clipboard
Repeat Last Prompt Cmd+Shift+. Re-run the last used intent instantly (no UI)

How It Works

  1. Select a block of code (or leave nothing selected to use the whole file)
  2. Press Cmd+Shift+/
  3. Pick an intent from the list
  4. Pick a prompt style (variant) from the sub-menu
  5. The prompt is copied to your clipboard — paste into ChatGPT, Claude, Copilot Chat, etc.

Intents

Intent What it does
Fix Bug Root cause analysis + corrected code with inline comments
Refactor Idiomatic rewrite, preserving public API
Explain Concise explanation of purpose, concepts, and gotchas
Write Tests Complete test file (AAA structure, edge cases, mocks)
Optimize Performance improvements with Big-O before/after

Each intent has 5 prompt styles (e.g. Fix Bug → Default / Step-by-step / Fix + test / Root cause only / As diff).

Fix Problems

The Fix Problems option (inside the Generate Prompt menu) reads all IDE diagnostics from the Problems panel and generates an AI prompt that combines your code with the error list — asking the AI to fix all issues at once.

Smart Context Detection

The extension automatically detects:

  • Language — Dart, JavaScript, TypeScript, Python, Go, Rust, Java, C#, Swift, Kotlin, C, C++
  • Framework — Flutter, React, Vue, Angular, Express, NestJS, Django, FastAPI
  • Code kind — widget, class, method, function, interface, enum, snippet, or whole file

Prompts use this context: "Find and fix the bug in this Flutter widget…"


Language Support

Full language-specific templates for all 12 languages:

  • Dart / Flutter
  • JavaScript
  • TypeScript
  • Python
  • Go
  • Rust
  • Java
  • C#
  • Swift
  • Kotlin
  • C / C++

All other languages fall back to a generic template automatically.


Installation

From VSIX (local build)

npm run compile && \
vsce package --no-dependencies --skip-license && \
code --install-extension ai-prompt-assistant-vscode-0.0.1.vsix

From VS Code Marketplace

Search for DevPrompt in the Extensions panel (Cmd+Shift+X).


Requirements

  • VS Code ^1.85.0
  • Node.js >=18 (for development only)

Development

npm install       # Install dependencies
npm run compile   # One-time build
npm run watch     # Watch mode

Press F5 in VS Code to open an Extension Development Host.


Project Structure

src/
├── extension.ts              # Entry point, command registration
├── promptEngine.ts           # Intent → prompt resolution
├── contextExtractor.ts       # Language, framework, codeKind detection
├── diagnosticsCollector.ts   # VS Code Problems panel reader
├── templates.ts              # Template registry façade
└── templates/
    ├── common.ts             # Types, intent metadata, fallback builders, variants
    ├── index.ts              # Assembles all languages into registry
    ├── dart.ts               # Dart / Flutter
    ├── javascript.ts         # JavaScript
    ├── typescript.ts         # TypeScript
    ├── python.ts             # Python
    ├── go.ts                 # Go
    ├── rust.ts               # Rust
    ├── java.ts               # Java
    ├── csharp.ts             # C#
    ├── swift.ts              # Swift
    ├── kotlin.ts             # Kotlin
    └── cpp.ts                # C / C++

License

MIT © 2026 devprompt# devprompt

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