Explain selected code in Fast or Deep mode and insert generated comments above the selected lines.
Features
- Hover selected text to get
DeepDoc · Fast | Deepactions. - Fast and Deep command variants.
- Auto-insert explanation above selection in language-appropriate comments.
- Replace existing generated comment block above the same selection.
- Supports OpenAI-compatible and Azure OpenAI endpoints.
- Uses VS Code SecretStorage for API key.
Commands
DeepDoc: FastDeepDoc: DeepDeepDoc: Test ConnectionDeepDoc: Set API KeyDeepDoc: Clear API Key
Keyboard shortcuts
- Fast:
Cmd+Alt+E(macOS),Ctrl+Alt+E(Windows/Linux) - Deep:
Cmd+Alt+D(macOS),Ctrl+Alt+D(Windows/Linux)
Settings
deepdoc.baseUrldeepdoc.providerdeepdoc.azureApiVersiondeepdoc.azureDeploymentNamedeepdoc.fastModeldeepdoc.deepModeldeepdoc.maxSelectedLinesdeepdoc.includeContextLinesdeepdoc.timeoutMsdeepdoc.fastMaxTokensdeepdoc.deepMaxTokensdeepdoc.includeMetadataHeaderdeepdoc.includeMarkersdeepdoc.replaceExistingBlock
Local development
npm install
npm run compile
Run extension host from VS Code with F5 using Run DeepDoc Extension.
Package VSIX
npm run compile
npx @vscode/vsce package
Publish
npx @vscode/vsce publish