Skip to main content

code-style

Apply IntelliJ Kotlin and Java code style when writing or reviewing.

ソース情報

リポジトリ
JetBrains/intellij-community
ソースの最終更新活動
2026年8月5日 18:20
検出された SKILL.md の言語
英語
スター
20,445
フォーク
6,009

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
code-style
description
Apply IntelliJ Kotlin and Java code style when writing or reviewing.
<!-- Generated by community/.ai/render-guides.mjs; edit community/.agents/skills/code-style/SKILL.md --> # Code Style Follow the IntelliJ Coding Guidelines with these IntelliJ-specific rules. ## Language - **ALWAYS use Kotlin for new files** - Only use Java when modifying existing Java code - Use idiomatic Kotlin: extension functions, data classes, null safety - Mark experimental APIs with `@ApiStatus.Experimental` - **Build scripts Kotlin style**: Follow `community/platform/build-scripts/kotlin-style-recommendations.md` for build-scripts code: - Use `@JvmField` for internal data class fields - Use `.put()`/`.get()` instead of `[]` operator - Use explicit `HashMap`/`HashSet`/`LinkedHashMap` instead of `mutableMapOf()`/`mutableSetOf()` ## Formatting - Indentation: 2 spaces (4 for Go files) - Line length: 140 characters max - Braces: else/catch/finally on new lines - Only in `/rustrover` directory you must always use standard Kotlin formatting rules with 4 spaces indentation.
GitHubで見る