Skip to content
代码片段 群组 项目
未验证 提交 3f024f01 编辑于 作者: Cindy Halim's avatar Cindy Halim 提交者: GitLab
浏览文件

Add YAML extension setup in docs

上级 a9ad05fa
No related branches found
No related tags found
2 合并请求!3031Merge per-main-jh to main-jh by luzhiyuan,!3030Merge per-main-jh to main-jh
......@@ -295,6 +295,28 @@ To uninstall an extension in the Web IDE:
1. From the list of installed extensions, select the extension you want to uninstall.
1. Select **Uninstall**.
### Extension setup
Web IDE extensions may require additional configuration to work with your projects.
#### YAML language support extension
To validate YAML files that match specified patterns, use
the Red Hat [YAML](https://open-vsx.org/extension/redhat/vscode-yaml) extension.
1. [Install the YAML extension](#install-an-extension).
1. Configure your schema:
1. On the top menu bar, select **File > Preferences > Settings**, or press
<kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and enter `Preferences: Open Settings (JSON)`.
1. In the `settings.json` file, add your schema configuration. For local schema paths, add the following prefix: `gitlab-web-ide://~/`. For example:
```json
"yaml.schemas": {
"gitlab-web-ide://~/<path-to-local-schema>.json": ["*.yaml", "*.yml"]
}
```
## Related topics
- [GitLab Duo Chat in the Web IDE](../../gitlab_duo_chat/_index.md#use-gitlab-duo-chat-in-the-web-ide)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册