idea format
手动格式化(可选code/whole file)
select the codes and ctrl+option+i: reformat selected codes
option+cmd+l: reformat the file, plz right-click the file in tree to set reformat scope to uncommmited lines in advance
Code style schema配置
code style可选schema,每个shema都是一个xml, 规定了import order, 是否加空行等code style
可在preferrence里的editor下的 code style的java进行配置。
常用的就是default或者google coding style。