The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
Agentforce Vibes Autocomplete is a separate VS Code extension that provides AI-based inline code suggestions as you write. It triggers autocompletions in Apex, JavaScript, HTML, and CSS files (including Lightning Web Component files).
Inline autocomplete is enabled by default. The Agentforce Vibes status icon in the VS Code status bar (bottom panel) shows whether the feature is active. Click the status icon to open the command palette for quick access to enable and disable commands.
To toggle inline autocomplete from the command palette:
To enable or disable inline autocomplete from Settings, follow these steps:
Agentforce Vibes turns off inline autocomplete when you’re idle. The sleeping Agentforce status icon in the status bar indicates this state. To re-enable, restart VS Code or press Option (⌥)\ to trigger suggestions manually. Inline autocomplete also re-enables automatically after 1 hour of inactivity.
Note
To see a visual indicator while Agentforce Vibes generates an autocompletion:
Agentforce Vibes automatically generates code and suggests completions as you type. When writing code, you’re often assigning variable values to an SObject such as Account.Name = 'abc' or Account.Type = 'Business' in Apex. Pause the cursor after the variable value and Agentforce Vibes suggests a completion and fills out the remaining fields in grayed (ghost) text.
Use these keyboard shortcuts to interact with suggestions:
| Action | Key |
|---|---|
| Trigger suggestions manually | Option (⌥)\ |
| Accept entire suggestion | Tab |
| Accept next word (requires VS Code Inline Suggest) | ⌘→ (macOS) / ⌥→ (Windows, Linux) |
| Dismiss suggestion | Esc |
If you don’t see a suggestion, make sure that Auto Completions are enabled. Run Agentforce: Toggle Auto Completions to toggle the feature off and on. You can always trigger inline suggestions manually by pressing Option (⌥)\, even when Auto Completions are off.
Note
The following VS Code settings control inline autocomplete behavior. Access them via File > Preferences > Settings and search for Agentforce Vibes Autocomplete.
| Setting | Default | Effect |
|---|---|---|
| Enable Auto Completions | On | Enables inline autocomplete suggestions as you type. Toggle per language (Apex, JavaScript, HTML, CSS). |
| Show an indicator to signal that Agentforce is making an autocomplete request | Off | Shows a visual indicator in the editor while the extension generates a completion. |
When inline autocomplete is active, Agentforce Vibes sends code context from your active file to the Salesforce LLM Gateway to generate suggestions. This context includes the code surrounding your cursor position. Salesforce doesn’t use this data to train its models.
You must enable telemetry to use Agentforce Vibes in Code Builder. In VS Code, you can turn off telemetry after initial setup if your organization’s policy permits. See Salesforce CLI Data Collection and Metrics for details about what data is collected and how it’s used.