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
|
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 |
|
|
|
Scenarios |
General development tasks, such as: |
Project-specific tasks, such as: |
|
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
-
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.
-
-
In the top search bar, enter a unique command name (such as
gen-test), and then press Enter. -
Select the command type:
-
User-level: A general command applicable to all projects
-
Project-level: Available only in the current project
-
-
In the editor area, enter the full prompt content. The command is saved automatically when you save the file.
-
Return to the session and enter
/in the dialog box to see your new command.