반응형
Windows > Preferences > Java > Editor > Save Actions
- Perform the selected actions on save 체크
- Organize imports 체크
최신버전 (Eclipse Oxygen 4.7)의 경우 위 설정이 비활성화 되어 있어, 기존의 import 단축키(Shift + Ctrl + O)가 작동하지 않음
그래도 작동하지 않을 때가 있는데, 그때는
Window > Preferences: General > Keys 에서 Organize Import 를 찾고 When에서
In Windows 를 Editing Java Source. 로 변경해주자!
출처 : https://stackoverflow.com/questions/45256038/eclipse-organize-imports-shortcut-ctrlshifto-is-not-working
반응형
'디버깅' 카테고리의 다른 글
[Spring] Illegal overloaded getter method with ambiguous type for property '컬럼명' (0) | 2018.04.02 |
---|---|
[Mobile, HTML] 모바일웹에서 input text클릭 시 확대 막아주기 (0) | 2018.04.01 |
[Java] .toString() 보다는 String.valueOf()를 사용하자.. (Null Point Exception) (1) | 2018.02.08 |
[TIP] Eclipse HTML5 템플릿 추가 (0) | 2017.12.28 |
[Java] java.net.SocketException: Unexpected end of file from server (URL Encoding) (0) | 2017.04.15 |