Jerry 平时在写一些简单的 SAP UI5 应用时,喜欢从这篇文章里介绍的脚手架应用作为模板,开始编程:
一个用于SAP UI5学习的脚手架应用,没有任何后台API的依赖
上面这篇文章的SAP UI5脚手架应用,使用到了nodejs express库作为本地服务器,来预览 SAP UI5 应用运行时的效果。
今天我找到了另一个 Visual Studio Code 扩展:Live Server,作者是 Ritwick Dey, 使用起来同样非常方便:
安装好Visual Studio Code Live Server之后,Visual Studio Code右下角状态栏里,会看到Go Live的按钮。选中一个html文件,点击该按钮:
即可自动打开浏览器,渲染该选中的html:
Live Server提供了丰富的配置项:
https://github.com/ritwickdey/vscode-live-server/blob/master/docs/settings.md
使用命令 netstat -aon|findstr 5500, 查看Live server默认监听在5500端口号上:
进程id为 21008
命令行:C:appVSCode-1.48.2Code.exe --inspect-port=0 c:appVSCode-1.48.2 esourcesappoutootstrap-fork --type=extensionHost
更多Jerry的原创文章,尽在:"汪子熙":