The method of running code in Sublime Text depends on the code language and can be achieved through the following methods: Python: Use the SublimeREPL plugin or Cmd/Ctrl B. JavaScript/Node.js: Use the SublimeREPL plugin or Cmd/Ctrl B. Other languages: Install specific plugins to get the ability to run code.
Running code in Sublime
The method of running code in Sublime Text depends on the language type of the code.
Method 1: Use the SublimeREPL plug-in
Ctrl
~
(Windows) or Cmd
~
(Mac) to open the console. python
at the console prompt and press Enter. Method 2: Use Cmd/Ctrl B
Cmd
B
(Mac) or Ctrl
B
(Windows) to run the code. Method 1: Use the SublimeREPL plug-in
Ctrl
~
(Windows) or Cmd
~
(Mac) to open the console. node
at the console prompt and press Enter. Method 2: Use Cmd/Ctrl B
Cmd
B
(Mac) or Ctrl
B
(Windows) to run the code. For other languages, you need a specific Sublime Text plugin to provide the functionality to run the code. Please refer to the following resources to find the plugin you need:
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!