How to open HTML file in vscode like in browser?
Answer a question
After the vscode or any extension update finished, a release note will show in vscode. I can find the releasenote in my computer, it is HTML file, I open it by vscode and vscode shows the HTML code, don't like open by browser.
General speaking, I want to view html in vscode other than browser. I had searched it in internet, all are open browser by vscode and view html file.
I know the vscode can do it but I don't know how to do, aha.
Thanks.
Answers
VS Code does not include built-in support for previewing html pages. This can be provided by an extension.
If you are interested in implementing this yourself, take a look at the webview api
However, as @herrbischoff noted, you should consider changing your workflow or expectations. A proper browser will offer a much better development experience and extensions like browser sync can connect VS Code to your browser of choice
更多推荐
所有评论(0)