5

如何使用 VSCode 开发 UserScripts?

 3 years ago
source link: https://www.v2ex.com/t/789348
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  JavaScript

如何使用 VSCode 开发 UserScripts?

  ves · 1 天前 · 929 次点击

vscode 内置提供了几种调试方法,但都存在一点小问题,也是我不太会用。

vscode 调试时要求运行一个服务器,在此之上来 debug js 。而运行服务器不能只有 js,需要放置一个 html 。

vscode 还提供一种 node 的方式来运行调试 js,很方便,但不能使用浏览器 API 。

预期最好的结果是最后这种,能在 vscode 里直接运行调试单文件 js,又能使用浏览器 API 。可以的话,greasyfork 中提供的 API 也能有一个补全提示就更好了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK