Configure shortcuts and inline suggestions for the Qoder CN extension in Visual Studio Code.
To use Qoder CN in Visual Studio Code, you must install Qoder CN and sign in with your Alibaba Cloud account. For more information, see the Installation Guide.
You can enable or disable inline completion in two ways:
Method 1: Click the Qoder CN icon in the status bar to quickly enable or disable inline completion in the pop-up window:
In the AI Chat window of Qoder CN, click Settings, find the Method Quick Operation setting, and enable or disable this feature.
Open the settings page to configure whether to show auto-generated inline suggestions alongside the IDE native completion dropdown. This option is disabled by default.
Visual Studio Code
Prerequisites
To use Qoder CN in Visual Studio Code, you must install Qoder CN and sign in with your Alibaba Cloud account. For more information, see the Installation Guide.
Keyboard shortcuts
| Action | macOS | Windows |
|---|---|---|
| Open or close the AI Chat window | ⌘ ⇧ L | Ctrl Shift L |
| Accept inline suggestion | Tab | Tab |
| Discard inline suggestion | Esc | Esc |
| Show previous inline suggestion | ⌥(option) [ | Alt [ |
| Show next inline suggestion | ⌥(option) ] | Alt ] |
| Manually trigger inline suggestion | ⌥(option) P | Alt P |
Rebind keyboard shortcuts
- In Visual Studio Code preferences, open the keyboard shortcut settings.
- In the Keyboard Shortcuts window, search for Qoder CN and click the edit icon. In the dialog that appears, enter the new key combination for the command and press Enter/Return.
Enable or disable inline completion
You can enable or disable inline completion in two ways:
Method 1: Click the Qoder CN icon in the status bar to quickly enable or disable inline completion in the pop-up window:
- You can configure whether to enable the local machine model and the cloud model.
- When both the local machine model and the cloud model are enabled, the cloud model takes priority for inline completion suggestions.