Performing input in Sublime requires the following steps: 1. Press Ctrl P to open the command palette; 2. Type the command name; 3. Select the command from the list and press Enter. Advanced options include setting shortcut keys, creating macros, and using plug-ins.
Perform input in Sublime
To perform input in Sublime Text, you can follow the following steps:
1. Type the command
- and press
Ctrl
P
(default shortcut key) to open the command panel.
- Type the name of the command you want to execute in the panel, such as
build
or run
.
2. Select Command
- Select the command to execute from the command list.
- If there are multiple matching commands, you can use the arrow keys to scroll up and down the list to select.
3. Press the Enter key
- After selecting the command, press the Enter key to execute the command.
- If the command requires parameters, you will be prompted to enter the required information on the command line.
Advanced options
-
#Set shortcut keys:You can create custom shortcut keys in Sublime's preference file Map to set shortcut keys for executing commands.
-
Create macros: A macro is a sequence of commands that can be executed through shortcut keys or menu items. You can create macros to automate repetitive tasks, including executing commands.
-
Using Plugins: There are many plugins that extend the functionality of Sublime, including adding additional commands or simplifying command execution.
Example
-
Compile the code: Enter the
build
command, and then select the compiler, such as Build with Compiler: gcc
.
-
Run the code: Enter the
run
command, and then select the language you want to run, such as Run Python program
.
-
Install the plug-in: Enter the
Install Package
command, and then type the name of the plug-in, such as Package Control
.
The above is the detailed content of How to execute sublime after input. For more information, please follow other related articles on the PHP Chinese website!