* Android Studio , IntelliJ 기준입니다.
Flutter(Dart)를 개발하시다보면 IDE에서 제공하는 Auto-Indent Lines 가 잘 안먹습니다.
정확하게는 정상적으로 동작되지 않습니다.
Dart를 위해서 IDE에서 제공해주는 단축키와 방식이 따로 있습니다.
1) 정렬할 코드 블럭 후 단축키
Command + option + L
2) 정렬할 코드 블럭 후 오른쪽 마우스를 누르면 "Reformat Code with 'dart format'"
이렇게 하면 깔끔하게 정리 됩니다.
'Flutter(플러터) > Tip' 카테고리의 다른 글
Flutter 상태 관리 ( State Management ) (0) | 2022.02.23 |
---|---|
Flutter MVVM (0) | 2022.02.22 |
Native? Reactive? Cross? Flutter? (0) | 2022.02.22 |
Flutter Architecture (아키텍처) (0) | 2022.02.22 |
Flutter Log (0) | 2022.01.14 |
댓글