Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Kotlin Formatter PlusNew to Visual Studio Code? Get it now.
Kotlin Formatter Plus

Kotlin Formatter Plus

restia

|
17 installs
| (0) | Free
Kotlin formatter for VS Code powered by ktlint or ktfmt
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Kotlin Formatter for VS Code

A simple Kotlin code formatter extension for Visual Studio Code, supporting both ktlint and ktfmt.

✨ Features

  • Format Kotlin files on demand or on save
  • Supports two formatting tools:
    • ktlint (with optional .editorconfig support)
    • ktfmt

📦 Requirements

  • A working Java runtime environment (JRE) in your system
  • Either ktlint or ktfmt installed as .jar files
  • Path to the selected formatter must be configured in the extension settings

🛠️ Configuration

Configure the extension via settings.json or the VS Code Settings UI.

🚀 Usage

  1. Open a Kotlin file in VS Code.
  2. Use the Format Document command (Shift + Alt + F) or enable format-on-save.
  3. The extension will run the selected formatter to reformat your code.

📚 References

  • esafirm/vscode-kotlin-formatter
  • cestef/kotlin-formatter
  • crdrost/vscode-ktfmt
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft