Home > Article > Development Tools > How to run web code in sublime
There are two ways to run web code in Sublime Text: install the web development plug-in and then press Ctrl B (Windows) or Cmd B (Mac) to run the code. Set up an external web server, copy the web files to the server, and enter the server URL access code in the browser address bar.
Running web code in Sublime Text
How to run web code directly in Sublime Text?
Sublime Text is a popular code editor that does not directly support running web code. However, we can achieve it through the following methods:
Use Web development plug-in
Install the Web Development Plugin: Press Ctrl Shift P (Windows) or Cmd Shift P (Mac) to open the Command Palette. Type "install" and install the following plugin:
Using an external web server
http://localhost/index.html
. The above is the detailed content of How to run web code in sublime. For more information, please follow other related articles on the PHP Chinese website!