android studio 설정

android_studio_settings_20181017_macOS.jar 를 받아서 file – import setting 을 해도 된다.

 

.bash_profile에 path 넣기 귀찮으니 이걸 사용한다.

 

java8이 필요하니 설치한다. ( 더 높은 버전 설치하면 gradlew 를 사용하는 스크립트가 동작하지 않는다)

 

 

  • 테마: 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