很容易更改内置的 web 服务器端口 (File | Settings – Debugger – JavaScript) ,然后使用 "Built-in server port" spinner 来设置新的值。
接下来,在浏览器中打开一个 HTML 页面,可以看到它运行在自定义的端口上。