Custom Commands (User-Level and Project-Level)

更新时间:
复制 MD 格式

Encapsulate common prompts and workflows into reusable user-level or project-level commands that you can invoke with a single / shortcut in the Agent dialog box.

Custom commands let you save frequently used prompts and workflows as reusable user-level or project-level commands.

Enter / in the Agent dialog box to invoke any custom command. For example, you can use custom commands to run code reviews, generate test cases, or query project specifications without retyping the full prompt each time.

Note

For details about Enterprise Dedicated Edition custom commands, see Extension Management.

Important

This feature is currently only applicable to Qoder CN IDE.

Command Types and Applicable Scope

Features

User-Level Commands

Project-Level Commands

Applicable Scope

Applies to all projects of the current user

Applies only to the current project's root directory and its subdirectories

Storage Path

  • macOS/Linux: /home/<username>/.lingma/commands/ or /Users/<username>/.lingma/commands/

  • Windows: C:\Users\<username>\.lingma\commands\

<project root directory>/.lingma/commands/

Scenarios

General development tasks, such as:
• Review code
• Generate unit tests






























































































































































































Project-specific tasks, such as:
• Check API specifications for this project
• Validate configuration file format






























































































































































































Sharing Method

Only for the current user

Share with team members through Git or other version control systems

Note: User-level commands do not sync across devices. To transfer them, manually copy the configuration files.

Create Custom Commands

  1. Open the command management interface

    • Method 1: Go to the Commands page in Settings, and click the Add button.

    • Method 2: Enter / in the dialog box, and click the Add Command quick entry at the bottom.

  2. In the top search bar, enter a unique command name (such as gen-test), and then press Enter.

  3. Select the command type:

    • User-level: A general command applicable to all projects

    • Project-level: Available only in the current project

  4. In the editor area, enter the full prompt content. The command is saved automatically when you save the file.

  5. Return to the session and enter / in the dialog box to see your new command.