android studio 설정

android_studio_settings_20181220_macOS.jar 를 받아서 file – import setting 을 한 뒤에, 설정 – key map 에서 MAC OS X 10.5+ copy 를 선택하면 된다. 

 

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

export ANDROID_HOME="~/projects/android-sdk"
export PATH="$PATH:$ANDROID_HOME/platform-tools:$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
    • Right margin: 200
  • Code Style – Java
    • Tab
      • Tab size: 2
      • Indent: 2
      • continuation indent: 2
    • Wrapping and Braces
      • Simple bloks in one line: on
      • Simple methods in one line: on
      • simple lambdas in one line: on
      • simple classes in one line: on
      • Throws list: Chop down if long
        • Align when multiline: on
      • method declaration parameters: Chop down if long
        • Align when multiline: on
      • method call arguments: Chop down if long
        • Align when multiline: on
      • chained method calls: Chop down if long
      • if()
        • Force brace: always
        • ‘else’ on new line: on
      • for()
        • Force brace: always
      • while()
        • Force brace: always
      • do…while()
        • Force brace: always
      • try-with-resource: Chop down if long
        • Align when multiline: on
      • Array initializer: Chop down if long
        • Align when multiline: on
        • New line after ‘{‘: on
        • Plane ‘}’ on new line: on
      • Enum constants: Wrap always
      • Parameter annotations: Chop down if long
      • Local variable annotations: Chop down if long
      • Annotation Parameters: Chop down if long
        • Align when multiline: on
  • Code Style – Kotlin
    • Tab
      • Tab size: 2
      • Indent: 2
      • continuation indent: 2 
    • method declaration parameters: Chop down if long
      • Align when multiline: on
    • method call arguments: Chop down if long
      • Align when multiline: on
    • chained method calls: Chop down if long
    • if()
      • ‘else’ on new line: on
    • do…while()
      • ‘while’ on new line: on
    • Enum constants: Wrap always
    • Parameter annotations: Chop down if long
    • Local variable annotations: Chop down if long
  • Code Style – XML
    • Tab size: 2
    • Indent: 2
    • continuation indent: 2
    • Android
      • Layout Files – include namespace declarations: on
      • Other XML resource files – include namespace declarations: on
  • 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
    • build: command + b
    • move caret to text start: command + up arrow
    • move caret to text end: comment + down arrow
  • Case sensivive completion: None
  • LogCat color: http://stackoverflow.com/a/19951203/1025379
  • Editor – General
    • Show quick documentation on mouse move: on
    • font: Bitstream Vera Sans Mono, 13