vscode默认情况编程输入无法自动补全GM函数,下面教程完成后自动补全GM函数
下载d.ts,存放到js程序目录
https://github.com/scriptscat/scriptcat/blob/main/src/types/scriptcat.d.ts
js程序目录下新建,创建一个 jsconfig.json 文件,内容如下:
{
// See https://go.microsoft.com/fwlink/?LinkId=759670
// for the documentation about the jsconfig.json format
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"allowSyntheticDefaultImports": true
},
"exclude": [
"node_modules",
"bower_components",
"jspm_packages",
"tmp",
"temp"
]
}