惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
S
SegmentFault 最新的问题
V
Visual Studio Blog
J
Java Code Geeks
宝玉的分享
宝玉的分享
美团技术团队
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
量子位
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
博客园 - 叶小钗
月光博客
月光博客
P
Proofpoint News Feed
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
博客园_首页
腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog

博客园 - hangox

Claude Code 自定义状态栏配置指南 如何给 Claude 中的网页做截图 AGP 8.0+ Publish idea 插件兼容 K2 模式 不要随便使用 npm 源加速站点 Xcode Format Swift 代码 idea Convert File To Kotlin File 多 Commit 问题 ApkList 源问题修复 BCM94360CS2 黑苹果 macOS Sonoma Wifi 不能开启修复 NginxProxyManager 数据库迁移记录 android ConcurrentModificationException 错误 Android Studio 插件分享——Gradle Utilities Android Studio 插件分享——Jadx Class Decompiler templete Android Studio 3.0 新特性 Android SpringAnimator初探 关于Android菜单上的记录 升级到 classpath 'com.android.tools.build:gradle:1.0.0-rc1 OnScrollListenerPro
IDEA 不提示 gitlab-ci 字段问题
hangox · 2024-10-26 · via 博客园 - hangox

问题描述

idea 编写 .gitlab-ci.yml 文件没有代码提示

正常来说,idea 会识别到类型自动下载的,但是有时候就是不会,很诡异,只能自己手动设置

解决方案

只需要添加一个 shcema 文件之后关联 .gitlab-ci.yml 文件即可

1. 打开 schema 编辑

2. 获取 JsonScheme 网址

gitlab ci 的 json scheme 有官方支持网址是这个 https://gitlab.com/gitlab-org/gitlab-foss/-/issues/49679,但是 json scheme 有个官方的网站可以查询,https://www.schemastore.org/json/

输入 gitlab 下面那个地方就是链接地址了

3. 配置 JsonScheme

下图那样,粘贴得到的网址 'https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json',file 文件要设定为 .gitlab-ci.yaml ,然后按确定即可