-
Notifications
You must be signed in to change notification settings - Fork 0
android studio setting
在Android Studio安装目录下的 bin 目录下,找到 idea.properties 文件,在文件最后追加 disable.android.first.run=true
Preferences -> Editor -> Auto Import -> Java
1.Tab不用4个空格 Code Style->Java->Tabs and Indents->Use tab character Code Style->General->Use tab character (例如:版本控制Diff界面按下Tab)
2.可视化Tab和空格 Settings->IDE Settings->Editor->Appearance->Show whitespaces
3.显示代码行数 Settings->IDE Settings->Editor->Appearance->Show line numbers
4.修改代码字体大小 Settings->IDE Settings->Editor->Colors & Fonts ->Font->Save As->改个名字后才能改字体大小,非编辑区:Preferences -> Appearance
5.添加api文档悬浮提示,鼠标悬浮显示doc Settings->IDE Settings->Editor->Show quick doc on mouse move
6.空行的Tab和空格被自动干掉 Settings->IDE Settings->Editor->Other->Strip trailing spaces on Save->None
7.Settings --> File Encodings 。建议将 IDE Encoding 、 Project Encoding 、 Properties Fiels 都设置成统一的编码。
8.Settings --> Editor --> Appearance ,取消勾选 Show right margin (configured in Code Style options) 。
- Settings -> Build, Execution, Deployment -> Instant Run -> Restart activity on code changes。hot swap这种情况默认是重启Activity
1.像Eclipse那样快速跳出括号 Keymap->Editor Actions->Complete Current Statement:默认是Ctrl+Shift+Enter;Shift+Enter则不管现在光标在哪个位置,直接新开一行
2.代码提示列表(Eclipse中的Content Assist,Alt+/) Keymap->Main Menu->Code->Completion->Basic:默认是Ctrl+Space
3.错误修正提示列表(Eclipse中的Quick Fix,Ctrl+1) Keymap->Other->Show Intention Action:默认是Alt+Enter
4.快速Overried方法 Keymap->Main menu->Code->Override Methods:需要自己设定
5.Eclipse中的outline Keymap->Main Menu->Navigate->File Structure:默认是Ctrl+F3
6.版本控制中Diff的Next和Prev Keymap->Other->Move to the next difference:默认是Ctrl+f7 Keymap->Other->Move to the previous difference:默认是Shift+f7