How to run sublime after writing the code
There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

How to run the code in Sublime
There are the following ways to run the code in Sublime:
1. Use hotkeys
- Windows/Linux: Ctrl B
- Mac: ⌘ B
This hotkey will run the entire active file.
2. Run through the menu
- From the menu bar, select "Tools" -> "Build" -> "Build"
3. Use the build system
- Select a build system in the drop-down list.
- Press F7 to run the build.
4. Use the command line
- Press Ctrl ` to open the console.
-
Type the following command and press Enter:
- Windows/Linux:
build - Mac:
sublime_build
- Windows/Linux:
5. Set the default build system
- Open "Preferences" -> "Settings - Default" in Sublime Text.
- Find the "build_system" option and set it to the build system you want to use.
- Restart Sublime Text to apply the changes.
6. Custom build commands
- Open "Preferences" -> "Settings - User" in Sublime Text.
-
Add the following line and set it to the build command to use:
- Windows/Linux:
"build_system": "你的构建命令" - Mac:
"build_system": "/usr/bin/你的构建命令"
- Windows/Linux:
Notice:
- Build commands vary by operating system and usage.
- You can run a single file or project by right-clicking on a project or file in Sublime Text and selecting "Run".
- The availability of the build system also depends on the installation of Sublime Text.
The above is the detailed content of How to run sublime after writing the code. For more information, please follow other related articles on the PHP Chinese website!
How to run sublimeApr 16, 2025 am 09:39 AMTo run Sublime Text, you need to download, install the application, purchase a license (optional), and then launch the application. Create or open a file to start encoding.
How to Chinese sublimeApr 16, 2025 am 09:36 AMSublime Text can be Chineseized through the following steps: 1. Download the Chinese package; 2. Install the Chinese package; 3. Restart Sublime Text; 4. Set the default language (optional); 5. Verify the Chinese version.
How to delete sublime plug-inApr 16, 2025 am 09:33 AMThere are two ways to delete plugins in Sublime Text: Delete through the Plug-in Manager: Select the plug-in you want to delete and right-click and select "Delete". Manually Delete: Navigate to the user data directory, locate the plugin folder and drag it to the Recycle Bin or Trash.
How to write code with gbk in sublimeApr 16, 2025 am 09:30 AMTo write code using GBK encoding in Sublime Text, you need to: 1. Set the project encoding to GBK; 2. Create a new file; 3. Select GBK encoding when saving as; 4. Enter the code using GBK encoding.
How to change sublime to ChineseApr 16, 2025 am 09:27 AMsublime can be translated into Chinese as: 1. Sublime, sacred; 2. Extreme, extraordinary; 3. Indescribable, awesome; 4. Sublime thought.
How to get the registration code for sublimeApr 16, 2025 am 09:24 AMThe steps to purchase a Sublime Text registration code are as follows: Visit the website and select "Buy". Select the license type and enter information. Pay and receive emails containing registration codes. Open Sublime Text, go to the License menu and paste the registration code. Click Register to activate your registration code and advanced features.
How to save the code in sublimeApr 16, 2025 am 09:21 AMSublime Text provides a variety of ways to save code, including shortcut keys (Ctrl S), menu bar (File > Save), toolbar (disk icon), and command panel (Ctrl P). In addition, it also provides an automatic save function, which can automatically save open files regularly.
How to use arrow function for sublimeApr 16, 2025 am 09:18 AMUse arrow functions to define anonymous functions in Sublime Text concisely and quickly, with the syntax: (parameter list) => expressions. The advantages include simplicity, readability, scope inheritance and closure functions. Notes include extension operators and this keyword limitations, and the need for explicit return statements for multi-line functions.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version
Chinese version, very easy to use

Atom editor mac version download
The most popular open source editor






