Lingma supports modifying common shortcut keys, enabling or disabling inline completion, and configuring other features in Visual Studio Code and JetBrains IDEs.
Configuring Lingma in Visual Studio Code
Preparations
To use Lingma in Visual Studio Code, you must install the Lingma plug-in and log on to your Alibaba Cloud account. For more information, see Download and installation guide.
View shortcut keys
Operation | macOS | Windows |
Open/Close AI Chat window |
|
|
Accept Inline Suggestion |
|
|
Discard Inline Suggestion |
|
|
Show Previous Inline Suggestion |
|
|
Show Next Inline Suggestion |
|
|
Trigger Inline Suggestion |
|
|
Rebind shortcut keys
Step 1: Choose Visual Studio Code > Preferences > Keyboard Shortcuts.
Step 2: In the keyboard shortcuts management window, type Lingma to search, and click Edit. Configure the key for the command in the window that appears and click Enter
/Return
.
Enable or disable inline completion
You can enable or disable the inline completion feature using two methods:
Method 1: Click the Lingma icon in the status bar. In the pop-up window, you can quickly enable or disable the inline completion feature:
You can specify whether to enable Local Machine Model and Cloud Model.
If you enable Local Machine Model and Cloud Model at the same time, suggestions from the cloud-based model are prioritized during inline completion.
Method 2: Enable or disable inline completion on the plug-in settings page, and set the generation length.
Enable or disable method quick operation
In the AI Chat window of Lingma, click Settings, find the Method Quick Operation settings, and enable or disable this feature.
Configure cloud model auto trigger display rule
In Settings, you can specify whether to enable Show inline suggestions when the IDE autocompletes shown. By default, the inline suggestions are not displayed.
Configuring Lingma in JetBrains IDEs
When using Lingma, you can use the default shortcut keys in JetBrains IDE to access Lingma related features. You can also modify the shortcut keys of the commands. For more information about rebinding shortcut keys in JetBrains IDE, see the JetBrains documentation, such as the IntelliJ IDEA documentation.
Preparations
To use Lingma in JetBrains IDE, you must install the Lingma plug-in and log on to your Alibaba Cloud account. For more information, see Download and installation guide.
View shortcut keys
Operation | macOS | Windows |
Open/Close AI Chat window |
|
|
Accept Inline Suggestion |
|
|
Discard Inline Suggestion |
|
|
Show Previous Inline Suggestion |
|
|
Show Next Inline Suggestion |
|
|
Trigger Inline Suggestion |
|
|
Rebind shortcut keys
Step 1: Open the JetBrains IDEs Preferences menu. The following sample figure shows how to find it in the IntelliJ IDEA:
Step 2: In the Settings window, click Keymap, type Panel to search, find the Lingma shortcut keys, right-click and select Modify Keyboard Shortcut. Configure the key for the command in the window that appears and click OK.
Enable or disable inline completion
Method 1: Click the Lingma icon in the status bar. In the pop-up window, you can quickly enable or disable the inline completion feature:
You can specify whether to enable Local Machine Model and Cloud Model.
If you enable Local Machine Model and Cloud Model at the same time, suggestions from the cloud-based model are prioritized during inline completion.
Method 2: Open the plug-in settings page to enable or disable inline completion and set the generation length.
Enable or disable method quick operation
Open the Plug-in Settings page. You can enable or disable Method Quick Operation on the page.
Configure cloud model auto trigger display rule
In Settings, you can specify whether to enable Show inline suggestions when the IDE autocompletes shown. By default, the inline suggestions are not displayed.
View help and share feedback
View help
In the AI Chat window of Lingma, you can view help in two ways:
Use the
/help
command in AI Chat to quickly view help.
In the upper-right corner of the AI Chat panel, click Help to access the help documentation.
Provide feedback on answer quality
In AI Chat, you can rate the answers generated by Lingma by giving a thumbs-up or thumbs-down to continuously improve the quality of answers.
Submit usage feedback
If you have any questions, suggestions for improvement, or feature requests during use, you can click Submit Feedback in the AI Chat window of Lingma to go to the Alibaba Cloud Developer Community - Lingma Q&A section to submit your questions.
Participate in experience survey
To enhance your AI coding experience, we invite you to share feedback on how you use the product, any suggestions you may have, and your expectations. We are committed to improving the offerings based on your insights.