Home >Development Tools >sublime >How to run sublime code
There are four ways to run code in Sublime Text: Use the shortcut key (Windows/Linux: Ctrl B; macOS: Cmd B) Select the build system through the menu bar Run from the command panel Using the Build Tools plug-in
Methods of running code in Sublime Text
Sublime Text provides a variety of ways to run code, the specific method depends on The programming language used.
Method 1: Using Hotkeys
Ctrl
B
Cmd
B
Method 2: Use the menu bar
Method 3: Run
Ctrl
Shift
P
or Cmd
Shift
P
)Method 4: Use the Build Tools plugin
This is a more advanced method, you need to install a third-party plug-in (for example, Build Tools plug-in). After installing the plugin, you can access the build tools in the menu bar and select the desired build system.
Examples for running language-specific code
When you run your code, Sublime Text displays output in the console. The console can be opened via View > Show Console in the menu bar.
The above is the detailed content of How to run sublime code. For more information, please follow other related articles on the PHP Chinese website!