Visual Studio Code link to local HTML file

穿精又带淫゛_ 提交于 2019-12-13 06:17:26

问题


I have a LSP server that returns hovers/tooltips containing links.

If I link to an HTML file on the web (https://...) when you click it it opens that link in the browser.

If I link to a local HTML file (file://...) it opens that HTML file in VSCode, as if you wanted to edit the file.

Is there any way to make it open the local HTML file in your browser?

Edit 1: I found the code that handles this. Seems it just checks for http, https or mailto and opens those externally. Everything else it opens with VSCode.

Edit 2: Found an identical issue. Looks like there is code to work around this here and here

来源:https://stackoverflow.com/questions/51059189/visual-studio-code-link-to-local-html-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!