Home Projects Contact
Back to Projects

SmartCodeSorter

IntelliJ IDEA & Android Studio plugin that automatically organizes Kotlin class members by structure and conventions — with zero configuration.

Kotlin IntelliJ Plugin SDK
SmartCodeSorter plugin

Clean Kotlin code,
automatically

SmartCodeSorter keeps your Kotlin class structure consistent without any manual effort. Install it, press a shortcut, and your class members, constructor parameters, and nested classes are instantly organized following Kotlin conventions.

  • Sort class members (fields, methods, nested classes) in one keystroke
  • Constructor parameter sorting for cleaner class definitions
  • Sort on Save — auto-sort every time you save a file
  • Shortcut: ⌥⌘S (macOS) / Code → Smart Code Sorter
  • Zero configuration — works out of the box
  • Compatible with IntelliJ IDEA & Android Studio

Technologies Used

Kotlin IntelliJ Platform Plugin SDK PSI (Program Structure Interface) Gradle

Get Started

Manual Sort

  1. Open any Kotlin file in IntelliJ IDEA or Android Studio
  2. Press ⌥⌘S (macOS)
  3. Or go to Code → Smart Code Sorter → Sort Kotlin Code

Sort on Save

  1. Go to Code → Smart Code Sorter → Sort on Save
  2. Toggle the option on
  3. Your code is sorted automatically every time you save