Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>KtlintNew to Visual Studio Code? Get it now.
Ktlint

Ktlint

Mark Skelton

|
8 installs
| (0) | Free
Format Kotlin files using ktlint
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ktlint

Format Kotlin files using ktlint.

Requirements

  • ktlint must be installed and available in your PATH.

Usage

Set ktlint as your default formatter for Kotlin files:

{
  "[kotlin]": {
    "editor.defaultFormatter": "mskelton.ktlint"
  }
}

Then use VS Code's format command (Shift+Alt+F or Shift+Option+F on macOS) to format your Kotlin files.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft