Home >Development Tools >VSCode >How to open vscode code from browser
Vscode method to open the code from the browser:
open in browser
Search for the "view in browser" plug-in in the vscode extension and click to install it. Click the explorer to select the current file, right-click and select "View In Browser" to open the page in the default browser.
Real-time refresh method one: livereload
In the project Run the command in the directory:
browser-sync start --server --files "**/*.css,**/*.html,**/*.js"
Method:
Select "Integrated Terminal" in "View" and enter the above command on the command line
Right-click the local file and select "Open in Terminal", enter the command
Implement refresh method two:
Install the Live HTML Previewer plug-in and click Preview Available in the lower left corner of the page.vscode Getting Started Tutorial"
The above is the detailed content of How to open vscode code from browser. For more information, please follow other related articles on the PHP Chinese website!