android studio 설정

android sdk 경로를 기본이 아닌 곳에 넣으려면 https://stackoverflow.com/a/37946348/1025379 를 보고 .zshrc에 넣어야 한다.

# .zshrc or .bash_profile
export ANDROID_HOME=~/project/android/sdk
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PATH=${PATH}:${ANDORID_HOME}/tools
export JAVA_HOME=/Applications/"Android Studio.app"/Contents/jre/jdk/Contents/Home
export PATH=${PATH}:${JAVA_HOME}

공통 설정

  • Appearance & Behavior
    • Appearance
      • Theme: Dracula

프로젝트별 설정

  • Editor
    • General
      • Auto Import
        • Insert imports on paste: All
        • (Java/Kotlin) optimize imports on the fly: on
        • Add unambiguous imports on the fly: on
    • Font: Bitstream Vera Sans Mono, 13
    • Code Editing
      • Show quick documentation on mouse move: on
    • Color Scheme
      • Android Logcat: http://stackoverflow.com/a/19951203/1025379
    • Code Style
      • Hard wrap at: 200
      • Java
        • Tab size: 2
        • Indent: 2
        • continuation indent: 2
      • Kotlin
        • Tab size: 2
        • Indent: 2
        • continuation indent: 2 
      • XML
        • Tab size: 2
        • Indent: 2
        • continuation indent: 2
  • Keymap
    • Optimize imports: option + command + O
    • code – Completion – Basic: shift + space
    • delete line: command + D
    • Duplicate Entire Lines: option + command + down arrow
    • run: command + r
    • rebuild project: command + b
    • move caret to text start: command + up arrow
    • move caret to text start with selection: shift + command + up arrow
    • move caret to text end: comment + down arrow
    • move caret to text end with selection: shift + command + down arrow