Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- activity
- Dialog
- ScrollView
- textview
- scroll
- viewmodel
- Navigation
- Button
- textfield
- CustomScrollView
- 안드로이드
- 계측
- data
- android
- livedata
- tabbar
- Kotlin
- 테스트
- TEST
- appbar
- 앱
- Flutter
- Coroutines
- intent
- LifeCycle
- Compose
- drift
- 앱바
- DART
- binding
Archives
- Today
- Total
Study Record
[AndroidStudio] 자동 완성 설정하기 (Live Templates) 본문
728x90
🎁 자동 완성 설정하기 (Live Templates)
안드로이드 스튜디오에서 몇 글자만 써도 자동으로 메뉴를 보여주는 기능이 있다. Flutter 프로젝트에서 "stless" 단어를 치면 나오는 것과 같은 기능이다. 내가 원하는 형식으로 이 기능을 사용할 수 있다.

① 먼저 File > Settings > Editor > Live Templates 탭에 들어간다.

② "+" 버튼을 눌러 Templete Group 으로 그룹명을 입력해준다. 붙이고 싶은 이름으로 한다.

③ 내가 만든 그룹을 선택한 채로 Live Templete 를 누른다.

④ 원하는 형식으로 Templates 를 정의한다. Abbreviation 으로 자동완성 단어를 넣고 Template text 에 내용을 입력해 준다. $NAME$ 는 사용자한테 직접 입력받을 수 있다. Define 을 클릭해 사용할 언어를 선택해 주고 OK 를 누른다.

⑤ Templates 가 설정한 대로 작동하는지 확인해보면 잘 추가된 것을 볼 수 있다.


728x90
'Flutter' 카테고리의 다른 글
[Flutter] 앱 이름 바꾸기 (app name) (0) | 2023.04.22 |
---|---|
[Flutter] Dialog (다이얼로그), 모서리가 둥근 다이얼로그 (0) | 2023.04.20 |
[Flutter] Run start ms-settings:developers (0) | 2023.04.07 |
[Flutter] 입력 폼이 포함된 화면 자연스럽게 구성하기 (0) | 2023.04.07 |
[Flutter] 안드로이드 스튜디오 dart version 설정하기 - Windows (0) | 2023.03.23 |