Gradle提速
1.Settings -> Build -> Build Tools -> Gradle 开启Offline work
2.配置gradle.properties(点我看详细配置和说明,全英文):
#开启守护进程
org.gradle.daemon=true
#多项目同时编译
org.gradle.parallel=true
#只编译需要的项目,在org.gradle.parallel=true情况下,起很大作用
org.gradle.configureondemand=true
#配置JVM参数
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
对比:
前:Gradle build finished in 3m 22s 805ms
后:Gradle build finished in 3s 733ms

Live Templates
Settings -> Editor -> Live Templates
配置好后,按快捷键 Ctrl+J 可以快速提示,选中后直接填好代码模板

Copyright
Settings -> Editor -> Copyright
适用于开源爱好者,可以在每个文件头部加上License。

开源协议有很多种,常见的有:
BSD license
GPL(GNU General Public License)
Apache Licence 2.0
MIT
Do What the Fuck You Want To Public License
显示模式
View -> Enter Presentation Mode
View -> Enter Distraction Free Mode
View -> Enter Full Screen
代码字体太小?试试看全屏撸代码。


一键清除无用资源
Refactor -> Remove unused resources

网友评论