Home > Development Tools > sublime > body text

How to run sublime code

下次还敢
Release: 2024-04-03 10:48:20
Original
1335 people have browsed it

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

How to run sublime code

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

  • Windows/Linux: Ctrl B
  • macOS: Cmd B

Method 2: Use the menu bar

  1. Click "Tools" in the menu bar
  2. Select "Build System"
  3. Select the required build system (for example, Python, C)

Method 3: Run

  1. from the Command Palette to open the Command Palette (Ctrl Shift P or Cmd Shift P)
  2. Enter "build" and press Enter
  3. Select the desired build system

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

  • Python: Use the Python3 build system.
  • C: Use the Clang build system or the G build system.
  • Java: Use Java to build the system.

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!