'기타/Eclipse' 카테고리의 글 목록 :: 개발은 아름다워
728x90
SMALL

이클립스를 사용하면서 단축키가 먹히지 않았다.

구글링을 통해 확인해보니 여러 방법이 있었는데, 이번에 모니터를 듀얼로 바꾸고 나서 Radeon 설정인 그래픽 자체 설정에서 변경을 해야한다는 것을 확인하고 해결하였다.

이클립스 "Organize Imports" 기능은 클래스에 불필요한 import구문을 제거해주고, 필요한 구문은 자동으로 추가해주는 기능으로 보통 "Ctrl + Shift + O"를 눌러 실행시킨다. 

1. 이클립스 단축키 설정화면으로 이동한다. ( Window > Preferences > General > Keys )


2. "Organize Imports"를 검색한다.

3. 검색된 단축키 설정의 Binding에 올바른 단축키가 지정되어있는지, When에 "Editing Java Source" 가 잘 지정되어있는지 확인한 후, 잘못설정된 게 있으면 수정 후 적용한다.

4. 3번으로도 해결이 안되면, Binding에 "Ctrl + Shift + O"로 바인딩 된 다른 단축키가 있는지 확인해본 후 사용하지 않는다면 Unbind Command 버튼을 통해 단축키에서 해제한다.

보통 여기까지하면 대부분 고쳐지는 듯 하나, 저는 안되었습니다.

계속 검색해보니,
https://stackoverflow.com/questions/45256038/eclipse-organize-imports-shortcut-ctrlshifto-is-not-working

Please keep in mind that if you are using an AMD GPU your Radeon Driver could block Ctrl+Shift+O which it uses to toggle an ingame-overlay. It can be changed to other keys as follows: Games->global settings->performance monitoring

Eclipse Organize Imports Shortcut (Ctrl+Shift+O) is not working
Eclipse used to import missing packages when I press Ctrl+Shift+O. The shortcut key has stopped working when used in Java files but the same shortcut is working in Python files (importing missing
stackoverflow.com


라데온 계열 그래픽카드를 사용하는 경우 Ctrl + Shift + O 로 단축키가 반영된  부분이 있었습니다. 라데온 설정에 들어가서 변경하니 결국은 해결이 되었습니다.

728x90
LIST
728x90
SMALL

Eclipse에서 Java 작업간 출력 화면에 한글이 깨지면 아래의 방법대로 따라하니 해결되었습니다.

 

Eclipse 프로그램 콘솔창 오류 문구

 

1. Eclipse 실행

window → preferences → 좌측 상단 검색 창 → spelling 입력  Encoding : Default (UTF-8) 체크   Apply 클릭

 

2. window → preferences → 좌측 상단 검색 창 → Workspace 입력  Text File encoding Encoding   Other : UTF-8 체크  Apply 클릭

3. 현재 진행중인 프로젝트의 mainclass 실행(키보드 F11 실행)

4. 현재 진행중인 프로젝트 마우스 오른쪽 클릭 → Properties → Run/Debug Settings 클릭

5. 목록에 나와있는 현재 진행중인 class 선택(마우스 더블 클릭)

6. Arguments   VM arguments Arguments   text 작성란 " -Dfile.encoding=MS949 " 입력   Apply 클릭

7. Common    Encoding   Other 란  " EUC-KR " 입력   Apply 클릭   OK 클릭

해결!!

728x90
LIST

+ Recent posts