Skip to main content

code-style

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

Informações da origem

Repositório
JetBrains/intellij-community
Última atividade na origem
5 de agosto de 2026 às 18:20
Idioma detectado do SKILL.md
inglês
Estrelas
20.445
Forks
6.009

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
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.
Ver no GitHub