VS代码中json.schemas的相对本地文件路径

问题描述 投票:0回答:1

您好,有没有办法为json.schemas使用相对文件路径?

$schema = "file:///foo.schema.json"

$schema = "file:///c:/test/foo.schema.json"

json visual-studio-code jsonschema
1个回答
0
投票

["${workspaceFolder}"应该完成任务。

https://code.visualstudio.com/docs/editor/variables-reference

© www.soinside.com 2019 - 2024. All rights reserved.