一個好用的Visual Studio Code擴展 - Live Server,適用於前端小工具開發

一個好用的Visual Studio Code擴展 - Live Server,適用於前端小工具開發
Jerry 平時在寫一些簡單的 SAP UI5 應用時,喜歡從這篇文章裏介紹的腳手架應用做爲模板,開始編程:html

一個用於SAP UI5學習的腳手架應用,沒有任何後臺API的依賴前端

上面這篇文章的SAP UI5腳手架應用,使用到了nodejs express庫做爲本地服務器,來預覽 SAP UI5 應用運行時的效果。node

今天我找到了另外一個 Visual Studio Code 擴展:Live Server,做者是 Ritwick Dey, 使用起來一樣很是方便:git

安裝好Visual Studio Code Live Server以後,Visual Studio Code右下角狀態欄裏,會看到Go Live的按鈕。選中一個html文件,點擊該按鈕:github

便可自動打開瀏覽器,渲染該選中的html:express

Live Server提供了豐富的配置項:編程

https://github.com/ritwickdey...bootstrap

使用命令 netstat -aon|findstr 5500, 查看Live server默認監聽在5500端口號上:瀏覽器

進程id爲 21008服務器

命令行:C:\app\VSCode-1.48.2\Code.exe --inspect-port=0 c:\app\VSCode-1.48.2\resources\app\out\bootstrap-fork --type=extensionHost

更多Jerry的原創文章,盡在:"汪子熙":

相關文章
相關標籤/搜索