intellijideaIntelliJIDEAimport⾃动和排序⼀、取消⾃动导⼊和⾃动删除⽆效包
File –> Settings –> Editor –> General –> Auto Import
⼆、包排序
File –> Settings –> Editor –> Code Style –> Java –> Package⾃定义顺序
eclipse包排序风格:
空⾏
import java.*
空⾏
import javax.*
空⾏
import com.*
空⾏
import all other imports
空⾏
import static all other imports