Appearance
Slash Commands Reference
FreshAll slash commands available in Gemini Code Assist.
Code Transformation Commands
Open the Quick Pick menu first (Ctrl+I in VS Code, Alt+\ in IntelliJ), then type:
| Command | Description | Example |
|---|---|---|
/generate | Generate new code from description | /generate async function to batch process CSV rows |
/fix | Fix bugs, errors, or code issues | /fix the divide by zero when denominator is empty |
/doc | Add documentation/comments | /doc add JSDoc with params and return type |
/simplify | Simplify complex or verbose code | /simplify replace this switch with a lookup table |
Agent Mode Commands (VS Code only)
Type directly in agent mode chat:
| Command | Description |
|---|---|
/tools | Show all tools available in current session |
/mcp | List MCP servers, connection status, and their tools |
Context Reference
In chat and agent mode prompts:
| Syntax | What it does |
|---|---|
@REPO_NAME | Reference an indexed remote repository (Enterprise) |
@filename.md | Include a specific file as context (IntelliJ agent mode) |
Command Availability
| Command | Standard Chat | Agent Mode | IntelliJ |
|---|---|---|---|
/generate | Yes | No | Yes |
/fix | Yes | No | Yes |
/doc | Yes | No | Yes |
/simplify | Yes | No | Yes |
/tools | No | Yes (VS Code) | No |
/mcp | No | Yes (VS Code) | No |