-
-
Notifications
You must be signed in to change notification settings - Fork 1
Real Time Code Analysis
RenzMc edited this page Sep 6, 2025
·
1 revision
This guide explains how to use the real-time code analysis features of the Acode AI CLI Assistant Plugin.
Real-time code analysis provides instant feedback as you type, helping you write better code faster. This feature is automatically enabled when you install the plugin.
- Get intelligent code completion suggestions
- Receive context-aware recommendations
- Improve coding efficiency with smart hints
- Instantly identify syntax errors
- Detect potential bugs before they happen
- Get explanations for detected issues
- Receive tips for code optimization
- Get suggestions for better algorithms
- Learn about language-specific best practices
- Understand complex code segments
- Get inline documentation for functions
- Receive breakdowns of code logic
Adjust how frequently you receive analysis:
- High: Instant feedback (more API calls)
- Medium: 5-second debounce (balanced)
- Low: 10-second debounce (fewer API calls)
- Open the AI assistant chat
- Click the menu icon (three dots)
- Select "Settings"
- Adjust real-time analysis sensitivity
- Appears near your cursor when suggestions are available
- Displays relevant code improvements
- Can be dismissed by clicking elsewhere or pressing Escape
- Highlighted lines in the editor indicate issues
- Hover over markers to see detailed explanations
- Click on markers to view suggested fixes
- Visual cues show optimization opportunities
- Color-coded based on severity
- Detailed tooltips provide improvement suggestions
Real-time analysis automatically activates when:
- You open a file in Acode
- You start typing in the editor
- The plugin detects a supported programming language
Right-click on any code to access AI features:
- "Ask AI": Get analysis for selected code
- "Explain Code": Understand what the code does
- "Optimize Function": Improve selected function
- "Add Comments": Document selected code
- "Generate Docs": Create documentation
- Select a code segment in the editor
- Right-click and choose AI options
- Or use keyboard shortcuts:
-
Ctrl/Cmd + E: Explain code -
Ctrl/Cmd + Shift + O: Optimize function -
Ctrl/Cmd + Shift + C: Add comments -
Ctrl/Cmd + Shift + D: Generate documentation
-
- Controls how long the plugin waits before sending analysis requests
- Helps reduce API calls and improve performance
- Adjustable in settings
- Responses are cached for 5 minutes
- Reduces redundant API calls for similar code
- Automatically expires to ensure fresh analysis
- Only sends relevant code context to AI
- Minimizes token usage for cost efficiency
- Focuses on current file and selected code
- Shows current session token consumption
- Tracks daily and total usage
- Helps monitor API costs
- Reduced animations on low battery
- Analysis pauses when battery is critically low
- Visual indicators show when conservation mode is active
- Ensure real-time analysis is enabled in settings
- Check that your file type is supported
- Verify your API key is valid and active
- Adjust sensitivity settings to "Low"
- Analysis will occur less frequently
- Reduces distraction while coding
- Some suggestions may not apply to your specific context
- Use judgment when implementing AI suggestions
- Report persistent false positives on GitHub
- Real-time analysis uses device resources
- Adjust debounce timing for better performance
- Disable feature if experiencing significant slowdown
To verify real-time analysis is working:
- Open a code file in Acode
- Start typing
- Wait for suggestions to appear
- Check that error markers display correctly
If you encounter issues with real-time code analysis:
- Check the Common Issues documentation
- Visit our GitHub Issues page
- Join our Discussions community for support
- Home
- Getting Started
- Usage Guides
- Advanced Features
- Developer Docs
- Troubleshooting