Skip to main content

code-style

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

Quellinformationen

Repository
JetBrains/intellij-community
Letzte Quellaktivität
5. August 2026 um 18:20
Erkannte Sprache von SKILL.md
Englisch
Sterne
20.445
Forks
6.009

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
code-style
description
Apply IntelliJ Kotlin and Java code style when writing or reviewing.
# 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.
Auf GitHub ansehen