Skip to main content

Configure the VS Code extension

Configure shortcuts and inline suggestions for the Qoder CN extension in Visual Studio Code.

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

ActionmacOSWindows
Open or close the AI Chat window⌘ ⇧ LCtrl Shift L
Accept inline suggestionTabTab
Discard inline suggestionEscEsc
Show previous inline suggestion⌥(option) [Alt [
Show next inline suggestion⌥(option) ]Alt ]
Manually trigger inline suggestion⌥(option) PAlt P

Rebind keyboard shortcuts

  1. In Visual Studio Code preferences, open the keyboard shortcut settings.
  2. 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.
Method 2: Enable or disable inline completion on the settings page, where you can also configure the generation length.

Enable or disable the Method Quick Operation

In the AI Chat window of Qoder CN, click Settings, find the Method Quick Operation setting, and enable or disable this feature.

Configure display rules for IDE native completion and inline completion

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.