Code Completion β
CodeBuddy IDE provides intelligent code completion as you write code, helping you write code faster and more efficiently.
About Code Completion β
CodeBuddy provides inline completion while you code. Based on analysis of the current code content and project context, it offers multi-line code completion to help you complete code writing more efficiently.
CodeBuddy supports numerous programming languages and various frameworks, including Python, JavaScript, TypeScript, Java, C/C++, Go, Ruby, and more.
Triggering Code Completion β
Automatic Trigger β
Code completion is automatically triggered as you type. When you:
- Start a new line
- Type any character
- Move the cursor to the end of a line
CodeBuddy will analyze your context and generate appropriate completions.
Manual Trigger β
You can use keyboard shortcuts to manually trigger code completion:
| Platform | Shortcut |
|---|---|
| macOS | Option + \ |
| Windows/Linux | Alt + \ |
Accepting Completions β
When a completion appears, you have several options:
Accept Entire Completion β
Press the Tab key to accept the complete completion.
Accept Line by Line β
Accept only the next line of the completion:
| Platform | Shortcut |
|---|---|
| macOS | Cmd + Down |
| Windows/Linux | Ctrl + Down |
Accept Word by Word β
Accept only the next word of the completion:
| Platform | Shortcut |
|---|---|
| macOS | Cmd + Right |
| Windows/Linux | Ctrl + Right |
Dismissing Completions β
To dismiss a completion without accepting it, press the Escape key.
Next Edit Suggestions (NES) β
Next Edit Suggestions is an advanced feature that predicts your next possible edit operation based on your edit history and context. Unlike traditional inline completion that continues writing from the cursor position, NES can suggest edits at different locations in your code.
How NES Works β
- Analyzes your recent edit patterns
- Predicts what you might want to edit next
- Displays suggestions that may span multiple lines or affect different parts of the code
Manually Triggering NES β
| Platform | Shortcut |
|---|---|
| All platforms | Ctrl + Shift + Enter |
Accepting NES Suggestions β
When an NES suggestion appears, press the Tab key to accept. Press the Escape key to dismiss.
Enabling/Disabling NES β
NES is enabled by default. To toggle it:
- Open the command palette (
Cmd/Ctrl + Shift + P) - Search for "CodeBuddy: Quick Settings"
- Toggle "Next Edit Suggestions"
Or configure in settings:
- Open settings (
Cmd/Ctrl + ,) - Search for
codingcopilot.enableNextEditSuggestions - Toggle the setting
Switching Completion Models β
You can switch between different AI models for code completion:
- Open the command palette (
Cmd/Ctrl + Shift + P) - Search for "CodeBuddy: Change Completions Model"
- Select the model you want to use
Or access via quick settings:
- Click the CodeBuddy icon in the status bar
- Select "Change Completions Model"
Configuring Code Completion β
Globally Enabling/Disabling Auto Completion β
- Open settings (
Cmd/Ctrl + ,) - Search for
codingcopilot.enableAutoCompletions - Toggle the setting
Or use quick settings:
- Open the command palette (
Cmd/Ctrl + Shift + P) - Search for "CodeBuddy: Quick Settings"
- Toggle "Auto Completions"
Enabling/Disabling for Specific Languages β
You can control code completion for specific programming languages:
- Open settings (
Cmd/Ctrl + ,) - Search for
codingcopilot.enableCompletionLanguage - Configure settings for specific languages
Example configuration in settings.json:
json
{
"codingcopilot.enableCompletionLanguage": {
"python": true,
"javascript": true,
"markdown": false,
"plaintext": false
}
}You can also toggle completion for the current file's language via quick settings.
Generation Preference β
Control the style of code completions:
- Open settings (
Cmd/Ctrl + ,) - Search for
codingcopilot.generationPreference - Choose:
- Smart Mode: Provides multi-line completions based on context
- Single Line Mode: Limits completions to a single line
IDE Settings Configuration β
You can also configure code completion through the IDE settings panel:
- Click the CodeBuddy icon in the sidebar or status bar
- Open Settings
- Navigate to the Tab section

The Tab settings page provides:
- Auto Completion: Toggle switch to enable/disable real-time code completion
- Language Rules: Configure whether auto-completion is enabled for each language. Language-level rules override global settingsβeven when Auto Completion is off, languages explicitly enabled here will still provide completions
- Generation Preference: Choose between smart mode (context-based multi-line completions) or single line mode
Keyboard Shortcut Reference β
| Action | macOS | Windows/Linux |
|---|---|---|
| Trigger completion | Option + \ | Alt + \ |
| Accept all | Tab | Tab |
| Accept line | Cmd + Down | Ctrl + Down |
| Accept word | Cmd + Right | Ctrl + Right |
| Dismiss | Escape | Escape |
| Trigger NES | Ctrl + Shift + Enter | Ctrl + Shift + Enter |