简体   繁体   中英

Visual Studio 2017 HTML Previewer

I'm coding on VS2017 using HTML and I am looking for a way to see my website change as I code - a live previewer. I know there is one for VS Code:

https://marketplace.visualstudio.com/items?itemName=hdg.live-html-previewer

Is there one like this for VS2017 and where can I find it?

EDIT - I am looking for an extension like this, not the HTML designer. So as I code, I can see the website change much like the linked extension for VS Code.

Thanks in advance.

By default, the "preview" is simply running the page which you can do by right clicking on it (either the code or the listing in the solution explorer) and selecting "View in Browser". It'll open the file in a browser. My common method then of seeing changes quickly has been to just keep refreshing when I save changes. The good thing is that it'll be a really accurate portrayal of how the given browser will render what you just did. No need to worry about whether the previewer is good enough.

But I found your question when I was looking for ways to preview how a page will look on a mobile device. In case there's a listing on the page I found that might help you further, Microsoft has this page...

https://docs.microsoft.com/en-us/aspnet/mobile/device-simulators

In case the link breaks, you might find the article again with the title: "Simulate Popular Mobile Devices for Testing".

I've recently released HTML 11 extension for Visual Studio 2017/2019 to quickly preview html files as you code:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM