Android studio 设置

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 --> 本地插件安装
  • 一行代码太长时格式化时换行:
  1. 设置行宽,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} 
*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值