Skip to content

Slash Commands Reference

Fresh

All 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:

CommandDescriptionExample
/generateGenerate new code from description/generate async function to batch process CSV rows
/fixFix bugs, errors, or code issues/fix the divide by zero when denominator is empty
/docAdd documentation/comments/doc add JSDoc with params and return type
/simplifySimplify complex or verbose code/simplify replace this switch with a lookup table

Agent Mode Commands (VS Code only)

Type directly in agent mode chat:

CommandDescription
/toolsShow all tools available in current session
/mcpList MCP servers, connection status, and their tools

Context Reference

In chat and agent mode prompts:

SyntaxWhat it does
@REPO_NAMEReference an indexed remote repository (Enterprise)
@filename.mdInclude a specific file as context (IntelliJ agent mode)

Command Availability

CommandStandard ChatAgent ModeIntelliJ
/generateYesNoYes
/fixYesNoYes
/docYesNoYes
/simplifyYesNoYes
/toolsNoYes (VS Code)No
/mcpNoYes (VS Code)No

Based on official Google Gemini Code Assist documentation.