點燈坊

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

我的 Android Studio 基本設定

Sam Xiao's Avatar 2024-10-01

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

Version

Android Studio 2024.1

Appearance

setup000

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

New UI

as002

  • Enable new UIOn
    • Compact modeOn

Editor Font

setup001

  • FontFira Code

  • Size

    • 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

Appearance

as006

  • 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

Appearance

as009

  • Compact ModeOn
  • Tool Windows BarsOff
  • Status BarOn

as010

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

Project Options

as011

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

Toolbar

as014

  • 刪除一些在 Toolbar 沒用的 icon

as015

  • 刪除 General Actions

as016

  • 刪除 Select Device

as017

  • 刪除 Attach Debugger to Android Process

as018

  • Toolbar 只留下最常用的 icon

Tools Window

studio19

  • Github Copilot Chat:⌘ 0
  • Project:⌘ 1
  • Running Devices:⌘ 2
  • Flutter Outline:⌘ 3
  • Flutter Inspector:⌘ 4

Keymap

  • Go to File:⌘ P

Conclusion

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