Programming/Android
[Android] try/catch 구문 자동 삽입
B&U
2015. 5. 21. 22:58
Background
Android Studio 사용할 때, Exception code를 삽입하는 것은 영 귀찮은 일이다.
이를 몇몇 단축키로 할 수 있는 방법을 공유한다.
Method
1. Setting 메뉴 진입 : File-Settings 혹은 ctrl + alt +s
2. "surround with" pop up 생성 : ctrl + alt + t
popup에서 try/catch 를 삽입할 수 있는 항목을 선택한다.
3. try catch 구문이 삽입된다.
4. 이외에도 다양한 try catch를 삽입할 수 있다.