AS运行优化设置
在C:\Users\Administrator\.gradle目录下创建gradle.properties文件,添加如下代码:
org.gradle.daemon=true
http://www.linuxidc.com/Linux/2015-03/115241.htm
AS参数设置
- File encodings --> project encoding (utf-8)
- 自动显示doc文档窗口提示: editor --> general --> show quick doc on mouse move 打勾
- gradle --> 设置本地安装目录,勾选离线工作
- appearences --> theme (主题风格)
- editor --> appearance --> show line numbers、show right margin
- editor --> general --> code folding --> one-line method 取消打勾
- editor --> colors & fonts --> fonts (代码字体样式)
- editor --> colors & fonts --> java
- editor -->Font 编辑器字体的大小
(取消打勾use inherited attributes 和italic,修改注释字体显示成斜体)
- editor --> code completion --> (改为none,大小写不区别)
- editor --> auto import --> add unambiguous import... (打勾,自动导包)
- 修改窗口背景:
editor --> color & font --> generate --> default text --> background 中选择颜色值
- keymap --> 快捷键
- plugins --> 本地插件安装
- 一行代码太长时格式化时换行:
- 设置行宽,Editor->Code Style, 勾选 wrap when typing reaches right margin 。
2)Editor->Code Style->Java,点击右侧标签Wrapping and Braces,勾选Line breaks和Ensure right margin is not exceeded。
- 创建类时自动添加作者和创建时间等相关信息:
File and code templates --> includes --> file header 修改
/**
* author : yangjunjin
* date : ${DATE} ${TIME}
*/