All Products
Search
Document Center

AI Coding Assistant Lingma:Code Completion

Last Updated:Jun 06, 2025

Lingma offers intelligent code completion capabilities that generate suggestions at the line or method level, leveraging context from the current file, cross-file dependencies, or enterprise coding standards. This allows you to focus on high-level technical design.

Note

Before you can use Lingma in an integrated development environment (IDE), you must install Lingma and log on using your Alibaba Cloud account. For more information, see Download and Installation guide.

Line or method level code completion

When you code in the IDE with Cloud Model Auto-Trigger enabled, Lingma generates suggested code at the line or method level based on the file context and related files. Use shortcut keys to accept, discard, or view alternative suggestions.

You can also manually trigger inline completion by using the shortcut key P.

image

The following shortcuts are available for code suggestions in the IDE code editor:

Command

macOS

Windows

Accept Inline Suggestion

Tab

Tab

Discard Inline Suggestion

esc

esc

Show Previous Inline Suggestion

⌥(option) [

Alt [

Show Next Inline Suggestion

⌥(option) ]

Alt ]

Trigger Inline Suggestion

⌥(option) ]

Alt P

Note: For more information about how to configure keyboard shortcuts for different operating systems, see Configuration and feedback guide.

Natural language to code

In the editor, type your request in natural language. Lingma will provide code suggestions. Press Tab to accept.

image

Knowledge base as context for code completion

In the Enterprise Dedicated edition, admins can upload and activate a knowledge base for code completion, and manage the access control for authorized members. Developers can then trigger enterprise-compliant code suggestions via P (Alt P) in the IDE. Lingma wll use the knowledge base content to generate code suggestions.

For more information about how enterprise admins prepare code repositories and how developers can use knowledge base as context for code completion features, see Best practices for knowledge base as context for code completion.