Command Palette
Relevant source files
The following files were used as context for generating this wiki page:
The Command Palette acts as a central hub for executing commands within the Acode editor. It provides a searchable interface that allows you to trigger editor functions, manage files, and execute plugin actions without navigating traditional menus.
Sources: tutorials/command-palette.md:3-8, user-guide/command-palette.md:3-4
Core Functionality
The Command Palette functions as a command-line style interface. It displays a searchable list of matching commands as you type into its input field. This system enhances efficiency by centralizing access to basic editing functions, project management tools, and Plugin actions.
Sources: tutorials/command-palette.md:10-18, user-guide/index.md:27-29
Execution Flow
When you search for a command, the editor filters registered actions based on your input. You then select the desired action to execute it.
The diagram shows the logic from opening the palette to executing a selected command.
Sources: tutorials/command-palette.md:28-31
Access Methods
Acode provides multiple ways to trigger the Command Palette depending on the input device.
Keyboard Shortcuts
On devices with physical keyboards, use the standard shortcut to launch the palette.
- Shortcut:
Ctrl + Shift + P
Sources: tutorials/command-palette.md:23-25, user-guide/command-palette.md:9-11
Mobile and Touch Access
For mobile devices, Acode utilizes QuickTools, a specialized toolbar located above the soft keyboard. You can trigger the palette by combining the Ctrl key in QuickTools with the on-screen keyboard or by adding a dedicated button.
Sources: user-guide/command-palette.md:15-21, user-guide/quicktools.md:3-5
QuickTools Configuration
You can add a dedicated Command Palette icon directly to the QuickTools bar for one-tap access.
- Navigate to Settings > App Settings.
- Select QuickTools.
- Drag the Command Palette icon into the active QuickTools bar.
Sources: user-guide/command-palette.md:25-29, user-guide/settings/app-settings.md:5-9
Usage and Discovery
The Command Palette supports various operations ranging from file handling to system settings.
| Operation Category | Example Commands |
|---|---|
| File Management | "Save", "Open", "Save all changes" |
| Editor Formatting | "Format Code" |
| System Settings | "Show Settings" |
Sources: tutorials/command-palette.md:30, user-guide/settings.md:18
Sequence of Interaction
The sequence diagram illustrates the interaction between the user and the editor components during command execution.
Sources: tutorials/command-palette.md:28-31
The Command Palette serves as the primary tool for command discovery and execution efficiency in Acode. By centralizing access to diverse functionalities—including those provided by the terminal and external plugins—it streamlines the development workflow across both desktop and mobile environments.
Sources: tutorials/command-palette.md:17-18, user-guide/index.md:21-23