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 method of running html in vscode

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Editor to share with you how vscode runs html. I hope you will learn a lot after reading this article. Let's discuss it together.

How does vscode run html?

How VScode opens a html file in a browser

By default, Vscode views html files under the console, which is very inconvenient for us to view and debug, so how to open it in the browser?

1. Create a new HTML file

two。 Click the extension on the left to open the extension bar

3. Type open in browser in the search bar of the extension bar, find the open in browser plug-in, and click "install" in the lower right corner to install it.

Because I have already installed it, another search will not show the word installation.

4. After the installation is completed, you can take a look at the extension document of this plug-in, which contains all kinds of information about the plug-in and how to use the plug-in.

We can see that Alt+B is opened in the default browser, and Shift+Alt+B is displayed in other browsers

5. Go back to the HTML file we just built, right-click in the file, choose to open it with the default browser or another browser in the pop-up window, or use the shortcut key we mentioned above (Alt+B or Shift+Alt+B) to open it.

6. If you want to open it in another browser, select Open In Other Browsers (Shift+Alt+B, a command box will appear at the top, which will show the browser you can use, and choose the browser you want, here, we will use chrome to open it.

After reading this article, I believe you have a certain understanding of how vscode runs html. You want to know more about it. Welcome to follow the industry information channel. Thank you for your reading!

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