KotlinCodeSorter Kotlin Code Sorter Kotlin 代码排序插件

程序名称:KotlinCodeSorter Kotlin Code Sorter

授权协议: MIT

操作系统: 跨平台

开发语言: Kotlin

KotlinCodeSorter Kotlin Code Sorter 介绍

Kotlin Code Sorter

一个可以对kotlin代码排序的小插件.最近在日常的开发中,发现kotlin的代码排列不如Java的好,在IDEA或者AndroidStudio里面Java的字段一般在前,方法在后,看起来比较感觉比较好.但是在kotlin中覆写的变量和函数是根据覆写的先后顺序来排列的,后写的在前面,先写的在后面.而且字段和函数是穿插排列的,真是逼死强迫症,
有了这个小插件,轻轻一按瞬间排好,美滋滋.

  • 使用 IDE 内置插件系统安装:

    • File > Preferences(Settings) > Plugins > browse repositories… > 搜索并找到”Kotlin code sotrer” > Install Plugin
  • 手动安装:

重启 IDE.

  1. 认快捷键 Ctrl + Alt + K.可自行修改:

  2. 当然也可以点击Code > Sort kotlin code > fields->initializer->constructors->functions

灵感来自Lifecycle Sorter

KotlinCodeSorter Kotlin Code Sorter 官网

https://github.com/longforus/KotlinCodeSorter

相关编程语言

Pacman 是一个软件包管理器, 作为 ArchLinux 发行版...
Smb4K 是KDE下的网络共享浏览器 更多屏幕截图请看:...
Wine (“Wine Is Not an Emulator” 的首字母缩写)...
虚拟桌面软件,可管理最多9个虚拟桌面,你可以用热键...
UNetbootin (Universal Netboot Installer)为一种跨...
Cobbler 可以用来快速建立 Linux 网络安装环境,它已...