點燈坊

失くすものさえない今が強くなるチャンスよ

我的 Android Studio 基本設定

Sam Xiao's Avatar 2024-11-29

Android Studio 基於 Android 生態設計,預設組態已經很好用,只要少數調整即可。

Version

Android Studio 2024.1.2 Patch 1

Appearance

setup000

  • ThemeDarcula
  • Use custom font
    • 13.3Dialog 16
    • 15Dialog 16
    • 16Dialog 18

New UI

as002

  • Enable new UIOn
    • Compact modeOn

Editor Font

setup001

  • FontFira Code
  • Size
    • 13.322.0
    • 1319.0
    • 1520.0
    • 1622.0
  • Line height1.2
  • Main weightMedium
  • Fallback fontMenlo

Background Color

as004

  • Background#363B41

Console Font

setup002

  • Use console font instead of the defaultOn
  • FontMenlo
  • Size18
  • Line height1.0

Code Folding

studio16

  • General
    • File headerOn
    • ImportsOn
    • Documentation commentsOn
    • Method bodiesOff
    • Custom folding regionsOn

studio17

  • Dart
    • PartsOn
    • Generic parameterOn

Appearance

as006

  • Show sticky lines while scrollingOff
  • Show indent guidesOff

Editor Tabs

as007

  • Tab placementNone

Gutter Icons

as008

  • Show gutter iconsOff

Inlay Hints

as012

  • 全部 Off

Flutter

as013

  • App Execution
    • Perform hot reload on saveOn
  • Editor
    • Format code on savetrue
      • Organize imports on savetrue

Tool Window Bars

as009

  • Compact ModeOn
  • Tool Windows BarsOn
  • Status BarOn

as010

  • Show WhitespacesOff
  • Show Line NumbersOn
  • Show Gutter IconsOff
  • Show Indent GuidesOff
  • Show Import PopupsOn

studio19

  • Navigation BarIn Status Bar

Project Options

as011

  • Open Files with Single ClickOn
  • Open Directories with Single ClickOn
  • Always Select Openned FileOn

Toolbar

as014

  • 自訂 Toolbar

as015

  • Left
    • Project Widget:顯示目前專案名稱
  • Center
    • Run Widget:選擇執行特定裝置
    • Flutter Hot Reload (All Devices):Hot Reload 所有裝置
    • Flutter Hot Restart (All Devices):Hot Restart 所有裝置
  • Right
    • Search Everywhere:搜尋
    • IDE and Project Settings:設定

as018

  • Toolbar 只留下最常用的 icon

Keymap

  • Go to File:⌘ P

Conclusion

  • Android Studio 與 WebStorm 皆來自於 JetBrains,因此 WebStorm 的 preference、shortcut 皆可留下來