Skip to content

自定义数据插件

Custom Data format allows extension authors to easily extend VS Code's HTML / CSS language support without having to write code.

The two Contribution Points for using custom data in an extension are:

  • contributes.html.customData
  • contributes.css.customData

For example, by including this section in an extension's package.json:

json
{
  "contributes": {
    "html": {
      "customData": ["./html.html-data.json"]
    },
    "css": {
      "customData": ["./css.css-data.json"]
    }
  }
}

VS Code will load the HTML/CSS entities defined in both files and provide language support such as auto-completion and hover information for those entities.

You can find the custom-data-sample at microsoft/vscode-extension-samples.

评论区
评论区空空如也
发送评论
名字
0 / 20
邮箱
0 / 100
评论内容
0 / 140
由于是非实名评论,所以不提供删除功能。如果你需要删除你发送的评论,或者是其他人的评论对你造成了困扰,请 发邮件给我 。同时评论区会使用 AI + 人工的方式进行审核,以达到合规要求。

© thebestxt.cc
辽ICP备16009524号-8
本站所有文章版权所有,转载请注明出处