Skip to main content

Custom Commands (User-Level and Project-Level)

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.
For details about Enterprise Dedicated Edition custom commands, see Extension Management.
This feature is currently only applicable to Qoder CN IDE.

Command Types and Applicable Scope

FeatureUser-Level CommandsProject-Level Commands
Applicable ScopeApplies to all projects of the current userApplies only to the current project's root directory and its subdirectories
Storage PathmacOS/Linux: /home/<username>/.lingma/commands/ or /Users/<username>/.lingma/commands/
Windows: C:\Users\<username>\.lingma\commands\
<project root directory>/.lingma/commands/
ScenariosGeneral 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 MethodOnly for the current userShare with team members through Git or other version control systems
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.
  1. In the top search bar, enter a unique command name (such as gen-test), and then press Enter.
  2. Select the command type:
  • User-level: A general command applicable to all projects
  • Project-level: Available only in the current project
  1. In the editor area, enter the full prompt content. The command is saved automatically when you save the file.
  2. Return to the session and enter / in the dialog box to see your new command.