Appearance
Smart Actions SOP
FreshContext-aware AI actions triggered from selected code — no typing required.
How Smart Actions Work
Select code in your editor and context-specific AI actions appear instantly.
VS Code
- Select a block of code
- Click the lightbulb icon that appears next to the selection
- Choose an action
IntelliJ
- Select a line or block of code
- Right-click the selection
- Choose a smart action from the Gemini submenu
Available Actions
| Action | What it does |
|---|---|
| Generate unit tests | Creates test cases for the selected code |
| Explain this code | Plain-language explanation of what it does |
| Add documentation | Generates docstrings/JSDoc/comments |
| Fix issue | Applies quick fix to selected error |
| Make code more readable | Refactors for clarity without changing behavior |
Code Transformation Quick Fix
For squiggly error lines — fastest way to fix errors:
VS Code:
- Hover over the squiggly error line
- Click Quick Fix
- Select /fix
- Review diff view > Accept
IntelliJ:
- Click the red error bulb icon
- Select Fix with Gemini
- Review and Accept
Best Use Cases
- Generate unit tests after writing a new function — saves 10-15 minutes per function
- Explain this code when inheriting unfamiliar code — faster than reading docs
- Quick Fix for compilation errors — often one-click resolution