AI CMD Line Generator
Annotate JavaScript and TypeScript code with AI inside VS Code.
Features
- Annotates selected code using AI.
- Works from the editor right-click context menu.
- Also available from the Command Palette (
Annotate Code).
- Shows progress while the request is running.
- Displays error messages when the API request fails.
Requirements
- VS Code
1.104.0 or newer.
- Internet connection (the extension sends code to an AI API).
Installation
- Install the extension in VS Code.
- Open any JavaScript (
.js) or TypeScript (.ts) file.
How to Use
- Open your source file in VS Code.
- Select the code you want to annotate.
- Right-click in the editor.
- Click
Annotate Code.
- Wait for the AI response (it may take around a minute depending on network/API speed).
Alternative:
- Open the Command Palette:
- Windows/Linux:
Ctrl+Shift+P
- macOS:
Cmd+Shift+P
- Run
Annotate Code.
Current Behavior
- If you select code, only that selected part is replaced with the AI-generated output.
- If you do not select code, the extension processes and replaces the full file content.
Troubleshooting
- If nothing happens, ensure an editor tab is open and focused.
- If you get an error notification, check your internet connection and try again.
- If the response is not what you expect, retry with a smaller, specific code selection.
Notes
- This extension currently depends on a remote AI endpoint.
- The selected code (or full file text when no selection exists) is sent to that endpoint for processing.
| |