1. 将bin目录的idea.properties文件中增加一行:disable.android.first.run=true,避免第一次打开AS时自动重新下载SDK
2.关闭更新 取消勾选
File —> Setting —> System Settings —> Updates —> Automatically check updates for
3.忽略大小写
File —> Setting —> Editor —> General —> Code Completion —> Case sensitive completion —> None
4.设置自动导包 勾选
File —> Setting —> Editor —> General —> Auto Import —> Optimize imports on the fly
File —> Setting —> Editor —> General —> Auto Import —> Add unambiguous imports on the fly
5.显示代码行数 勾选
File —> Setting —> Editor —> General —> Appearance —> Show line numbers
6.禁止自动打开上次工程 取消勾选
File —> Setting —> System Settings —> Reopen last project on startup
7.禁止代码折叠 取消勾选
File —> Setting —> Editor —> General —> Code Folding—> One-line methods
File —> Setting —> Editor —> General —> Code Folding—> “Closures”(anonymous classes implementing one methods
File —> Setting —> Editor —> General —> Code Folding—> Generic constructor and method parameters
File —> Setting —> Editor —> Code Style —> Java —> Wrapping and Braces —> Comment at first column
(启用的话,注释的位置就会处于行首,否则就根据缩进来注释)
File —> Setting —> Editor —> Code Style —> Java —> Wrapping and Braces —> Control statement in one line
(格式化代码的时候,会把些很短的语句合并成一行)
8.修改新建文件文件头
File —> Setting —> Editor —> File and Code Templates —> Includes —> Java —> File Header
/**
* Created by ${USER} on ${DATE}
*/
9.修改文件编码UTF-8
File —> Setting —> Editor —> File Encodings —> IDE Encoding —> UTF-8
File —> Setting —> Editor —> File Encodings —> Project Encoding —> UTF-8
File —> Setting —> Editor —> File Encodings —> Default encoding for properties files —> UTF-8
网友评论