idea format

2023/03/14 IDE 共 340 字,约 1 分钟

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。

Search

    Table of Contents