Android Studio 基本配置

系统字体

  • File | Settings 打开设置
  • 选择 Appearance
  • 勾选 Override default fonts by (not recommended) ,选择一款支持中文的字体即可,size为字体大小。
    这里写图片描述

文件编码

  • File | Settings 打开设置
  • 选择 Editor | File Encodings
    建议将 IDE Encoding 、 Project Encoding 、 Properties Fiels 都设置成统一的编码。
    这里写图片描述

显示行号

  • File | Settings 打开设置
  • 选择 Editor | General | Appearance
  • 勾选 Show line numbers
    这里写图片描述

驼峰选择

AS默认Ctrl + Left / Right 键改变字符选择区域的时候 Android Studio 默认不支持‘驼峰’单词的选择。
设置驼峰选择:
* File | Settings 打开设置
* 选择 Editor | General | Smart Keys
* 选中 Use “CamelHumps” words
这里写图片描述

自动导包

  • File | Settings 打开设置
  • 选择 Editor | General | Auto Import
  • 勾选 Optimize imports on the fly
  • 勾选 Add unambiguous imports on the fly
    这里写图片描述
    如果有多个相同包名的情况下,不会自动导入,而是自己选择。

LOG颜色

AS默认的LOG颜色并不太好区分,我们可以自己设置:
* File | Settings 打开
* 选择 Editor | Color & Fonts | Android
* 点击 Click on Save As…按钮创建一个新的配色 Scheme
* 按照下面的表格修改对应的颜色(修改之前需要取消勾选 Use inherited attributes)

Log级别颜色
Assert:#AA66CC
Debug:#33B5E5
Error:#FF4444
Info:#99CC00
Verbose:#FFFFFF
Warning:#FFBB33

设置前:
这里写图片描述

设置后:
这里写图片描述

警戒线设置

  • File | Settings 打开设置
  • 选择 Editor | General | Appearance
  • 勾选 Show rigth margin(configured in Code Style options)
    这里写图片描述

禁用拼写检查

  • File | Settings 打开
  • 选择 Editor | Inspections
  • 取消勾选 Spelling
    这里写图片描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值