添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
慈祥的针织衫  ·  C#/.NET/.NET ...·  8 月前    · 
淡定的火锅  ·  ASP.NET Core Blazor ...·  1 年前    · 
温柔的泡面  ·  ora-02069 ...·  2 年前    · 

vscode json schema for the typescript compiler's configuration file

在 Visual Studio Code 中,你可以使用 JSON schema 来让编辑器提供更好的提示和补全功能。TypeScript 编译器的配置文件 (tsconfig.json) 也可以使用 JSON schema 来提供这些功能。

要在你的 tsconfig.json 文件中使用 JSON schema,你需要在文件的最顶部添加一行注释,指向 JSON schema 文件的 URL。例如:

// This file is a configuration file for the TypeScript compiler. // See: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html " $schema " : "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json" // ...

这样,当你在编辑 tsconfig.json 文件时,Visual Studio Code 就会使用 JSON schema 来提供提示和补全功能。

希望这对你有帮助。

    • 2452
  •