All Products
Search
Document Center

AI Coding Assistant Lingma:Extension management

Last Updated:Sep 23, 2025

Learn how to manage default commands and create your own commands.

Important

Extension management is supported for Visual Studio and JetBrains IDE plug-in only, not available for Lingma IDE.

Supported edition

Enterprise Dedicated Edition

For Dedicated Edition, Lingma admins and global admins can manage commands and control the access in Extension of the Lingma console. And authorized developers with command access can then type the leading slash / to get these commands.

Important
  • Make sure Lingma is updated to version 1.4.0 or above to use the feature.

  • It usually takes 5–10 minutes for the feature to take effect after you enable or modify a command. Developers can then use the commands in the IDE.

Manage commands

View commands

Lingma admins and global admins can go to the Extensions section in the console to see both default and user-defined commands.

image

Click a card to enter the details page. You can see basic information, access control, and usage.

Create commands

To create your own command, click Create Command in Extensions, and follow the steps below:

Step 1: Enter basic information

image

  • Name: The command name can be 1 to 64 characters long. It must include uppercase and lowercase letters, numbers, underscores, and spaces. This name is displayed to developers when they type the leading slash / in Lingma. Make sure it is easy to read and follows a standard format.

  • Description: Explain how and when to use the command. Keep it under 200 characters.

  • Icon: Choose an icon and color for the command from the available options.

  • Access control:

    • Public: Members authorized to access Lingma

    • Private: Members authorized to access the commands

Step 2: Configure command details

image

  • Prompt: Up to 5,000 characters. You can enter system identity prompts and requirements prompts.

  • Context: Select contexts such as #userInput and #selectedCode so that developers can get a list of contexts when they type # in Lingma.

  • Chat History: When the switch is turned on, running the command will get chat history.

Manage access control

After creating a command, you can manage access control on the command details page.

  • For a public command, click View under Access Control and you'll be redirected to the authorization management page to see authorized developers.image

  • For a private command, click View under Access Control and you'll see the access control navigation drawer. You can add or remove members. Only authorized developers can be added.image

Enable or disable commands

Important
  • You need to enable the commands in the console so developers with access can use the / command to invoke them in Lingma.

  • After you enable the commands, it may take 5–10 minutes to take effect. Once it's active, developers can use it in Lingma

Test the command before rolling it out to a larger user base.. Follow these steps:

  1. Change the command access to Private.

  2. Add only testers to the list.

  3. Turn on the switch to enable the command.

  4. Testers can then test the command in the Lingma.

Once the tests are passed, configure the access control based on requirements.

image

To disable a command, toggle the switch to turn it off. Once disabled, the command will no longer appear when developers attempt to invoke the command using the leading slash/ .

Modify commands

In the command details, click the Modify button in the upper right corner to modify the command.

Delete commands

To delete a command, click the Delete button in the upper right corner. Confirm to remove the command permanently. Be careful, as this action is irreversible.

Use commands

Developers with access can invoke the command by typing the leading slash / in Lingma's chat box.

image

Examples

Command configuration

The following table lists the details of a command.

Command name

API reference generation

Icon

Any icon

Description

The command generates API references after API development is complete.

Access control

Set the access control based on your business requirements.

Prompt

You are a highly experienced Java developer, as well as a writing specialist. Create API references using the following template based on the RestController code in Spring MVC, 
the comments in the code, and your understanding of the code. 

Topic: the API name
API: the type, such as GET, POST, or PUT, and URL
Request parameter: a table, and the parameter name, type, and description in the first, second, and third columns, respectively
Response parameter: a table, and the parameter name, type, and description in the first, second, and third columns, respectively
Error code: a table, the error code in the first column, and the error code description in the second column

Context configuration

莫小@1x

Generate an API reference in Markdown format based on #selectedCode.