android studio 설정

android_studio_settings_20200321_macOS.jar 를 받아서 file – import setting 을 한 뒤에, 설정 – key map 에서 Default for maxOS copy 를 선택하면 된다. 

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}
  • 테마: Dracula
  • Auto Import:
    • Insert imports on paste: All
    • optimize imports on the fly: on
    • Add unambiguous imports on the fly: on
  • Code Style
    • Hard wrap at: 200
  • Code Style – Java
    • Tab size: 2
    • Indent: 2
    • continuation indent: 2
  • Code Style – Kotlin
    • Tab size: 2
    • Indent: 2
    • continuation indent: 2 
  • Code Style – 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
  • LogCat color: http://stackoverflow.com/a/19951203/1025379
  • Editor – General
    • font: Bitstream Vera Sans Mono, 13