Next Edit
Use Next Edit to get code completions and automatic error fixes directly in your editor.
What is Next Edit?
Get code completions and automatic error fixes as you work in your editor. When enabled, Bob analyzes your code context and suggests edits through an inline diff interface.
Key capabilities
- Code completions: Suggests the next change to your codebase based on your code context, intent, and logic.
- Automatic error fixes: Detects diagnostic errors near your cursor and suggests fixes.
- Inline diff interface: Displays suggestions with jump decorations and gutter indicators.
Enabling Next Edit
You can enable Next Edit through Quick Settings or the Settings menu.
From Quick Settings
Click Bob - Settings in the status bar at the bottom of IBM Bob.
Select Next Edit (Experimental) from the Completion Mode dropdown.
From Settings menu
Click the settings gear icon in the Bob panel.
Select the Editor tab.
Select Next Edit (Experimental) from the Completion Mode dropdown.
Using Next Edit
Position your cursor in your code where you want to make changes.
Wait for Bob to analyze the context and display a suggestion as an inline diff.
Review the suggested changes shown with visual indicators in the editor gutter.
Accept the suggestion using the keyboard shortcut or by clicking the accept indicator, or reject it to continue coding.
Code actions
Code actions provide quick fixes, refactorings, and AI-powered suggestions directly in your editor. When you select code or encounter a problem, Bob offers contextual assistance through a lightbulb icon or context menu.
Code reviews
Bob can review your code directly from your IDE, catching potential issues before you commit your work.