常用设置

设置菜单
windows/linux: file->setting
mac: android studio->preferences

显示代码行号

editor->general->appearance->show line number打钩->apply/ok
img

更改软件主题

appearance & behavior->appearance->theme->apply/ok
img

更改字体大小

editor -> colors & fonts -> font ->随便选一个你喜欢的scheme然后save as -> 弹出一个框,写一个定义的设置的名字,ok -> 在primary font 和 secondary font 选择自己喜欢的字体,size就是字体大小,line spacing就是行距。可以在下面的预览框看到效果。调整完毕记得apply/ok。
img

更改文字颜色

editor -> colors & fonts -> console colors ->随便选一个你喜欢的scheme然后save as -> 弹出一个框,写一个定义的设置的名字,ok ->修改ansi,console等等需要修改的项的效果,修改完成apply/ok。
img

显示文档注释javadoc

editor->general->show quick documentation on mouse move打钩->apply/ok
img

显示/隐藏代码提示和自动补全

刚刚开始使用有些人的电脑没有自动弹出自动提示,可能是file->power save mode的钩被打上,检查一下这个选项不要打勾
在editor -> general -> code completion 设置成下面这样的: img

然后apply/ok就可以了。

显示空格

editor -> general -> appearance -> show whitespaces打勾->appley/ok
img

自动检查更新

appearance & behavior -> system settings -> updates
img

  • Stable Channel : 正式版本通道
  • Beta Channel : 测试版本通道
  • Dev Channel : 开发发布通道
  • Canary Channel : 预览发布通道
    其中Stable Channel 最稳定,问题相对较少, Canary Channel 能获得最新版本,问题相对较多。

更改新创建文件头部信息

editor -> code style -> file and code templates ->includds -> 选中file header。在右边的编辑框边写信息,下面的description提示有一些内置的方法可以使用。比如我这里就插入了当前日期${DATE}
img

results matching ""

    No results matching ""