Android Studio 常见设置

1. 修改程序主题

  选择Flie->Settings->Appearance->Theme

 

2. 调整代码字号

  选择Flie->Settings->Color&Font->点击Save As,存储新的字体主题->修改字号

 

3. 设置生成类的注释头部,例:

选择Flie->Settings->Editor->File And Codes Tmplates->Include

 

3.Design界面不显示:错误信息【the following classes could not be found:android.support.v7.internal.widget.ActionBarOverlayLayout (Fix Build Path, Edit XML,Create Class) Tip: Try to build the project】

解决方案如下:

style文件中theme改一下

在Theme.AppCompat.Light.DarkActionBar前面加上Base.  如下

<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
   <!-- Customize your theme here. -->
</style>

4. 局部变量前面加m,在生成Getter和Setter方法时希望去掉m前缀。

在箭头所指方向加m(原解决方案:File->Settings->Code Style->Java,然后在右边面板中选择Code Generation标签,Naming,Field这一行,对应的Name prefix中加上m

 

4、方法排序。

如果你总是调整自己写的方法,以使互相调用或功能相关的方法能靠近,可以这样设置。

如第3条的步骤,在标签中选择Arrangment,勾住Keep dependent methods together,后面可以自己选择是按广度排序还是按深度排序。

你可能感兴趣的:(Android Studio 常见设置)