How to view an HTML file in the browser with Visual Studio Code

前端 未结 23 1673
[愿得一人]
[愿得一人] 2020-11-28 17:43

How can I view my HTML code in a browser with the new Microsoft Visual Studio Code?

With Notepad++ you have the option to Run in a browser. How can I do the same thi

23条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 18:05

    Ctrl + F1 will open the default browser. alternatively you can hit Ctrl + shift + P to open command window and select "View in Browser". The html code must be saved in a file (unsaved code on the editor - without extension, doesn't work)

提交回复
热议问题