Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The way vscode lets the code open from the browser

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how vscode lets code open from browsers. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The way vscode lets the code open from the browser:

Open in browser

Search for the "view in browser" plug-in in the vscode extension and click install, click Explorer to select the current file and right-select "View In Browser" to open the page in the default browser.

Real-time refresh method 1: livereload

Run the command under the project directory:

Browser-sync start-- server-- files "* * / * .css, * * / * .html, * * / * .js"

Methods:

Select "Integrated Terminal" in "View", and enter the above instructions on the command line

Right-click the local file and select "Open in Terminal", and enter the instruction in the terminal command line

The above two methods achieve the same effect and principle, can be run in the background, press the shortcut key "control+c" to exit the current running process.

Implement refresh method 2:

To install the Live HTML Previewer plug-in, click Preview Available in the lower left corner of the page.

Note: with livereload, there is no need to install the "view in browser" plug-in.

Thank you for reading! This is the end of the article on "how to open vscode code from the browser". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report