Appearance
Code Completions SOP
FreshInline completions and Next Edit Predictions for faster coding.
Standard Completions
Gemini suggests completions automatically as you type.
mermaid
flowchart LR
A[Start typing] --> B[Ghost text suggestion appears]
B --> C{Decision}
C -->|Accept| D[Press Tab]
C -->|Reject| E[Press Esc or keep typing]Accept: TabDismiss: Esc or continue typing to ignore
Next Edit Predictions
Goes beyond the cursor — suggests changes throughout the file even in other locations.
Enable in VS Code
- Settings > Extensions > Gemini Code Assist
- Find Next Edit Predictions checkbox
- Enable it
Enable in IntelliJ
- File > Settings > Tools > Gemini
- Completion section > check Next Edit Predictions
Using Next Edit Predictions
- Write code — predictions appear when you pause typing
- Press
Tabto accept a prediction - Press
Tabagain for the next suggestion - Press
Escto dismiss (stops for that code block)
INFO
When multiple suggestions exist, hover over a suggestion to see alternatives and use arrow keys to cycle through them.
Disable Completions
VS Code:
- Settings > Extensions > Gemini Code Assist > Inline Suggestions: Enable Auto > Off
- OR: Click spark status bar > Disable AI Code Completion
IntelliJ:
- Click spark status bar > Enable AI Code Completion (toggle)
Exclude Files from Context
Create .aiexclude in your project root:
# Exclude secrets
.env
secrets/
credentials.json
# Exclude generated files
dist/
build/
*.generated.ts
node_modules/Gemini also respects .gitignore patterns automatically.
Disable Cited Code Suggestions
To prevent suggestions that match open source code:
VS Code: Settings > Gemini Code Assist > Recitation: Max Cited Length > set to 0
IntelliJ: spark status bar > Configure Gemini > Advanced settings > Block selections that match external cited sources