zip11 发表于 2023-3-30 13:51:46

vscode自动补全GM函数

vscode默认情况编程输入无法自动补全GM函数,下面教程完成后自动补全GM函数

下载d.ts,存放到js程序目录

[https://github.com/scriptscat/scriptcat/blob/main/src/types/scriptcat.d.ts](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"
]
}
```

王一之 发表于 2023-3-30 14:34:37

呜呜呜 终于有人注意到我写的.d.ts文件了
页: [1]
查看完整版本: vscode自动补全GM函数