Programing

IntelliJ-오류가있는 위치 표시

lottogame 2020. 8. 16. 21:45
반응형

IntelliJ-오류가있는 위치 표시


Eclipse와 유사한 방식으로 작업중인 파일에 대해 IntelliJ가 오류 위치를 지속적으로 표시하도록하는 방법이 있습니까? 현재 메시지 패널에 모든 오류를 나열하는 프로젝트를 만들어야하는데 편집기 패널을 사용하여 탐색 할 수 없습니다. 오류 / 경고 위치를 가리키는 간단한 점 / 마커를 갖고 싶습니다.


IntelliJ IDEA는 현재 파일에서 오류 및 경고를 즉시 감지합니다 ( 메뉴 에서 절전 모드 가 활성화 되지 않은 경우 File).

다른 파일과 프로젝트보기의 오류는 Build| 메시지 도구 창에 Make나열됩니다 .

오류를 탐색하려면 Navigate| Next Highlighted Error( F2) / Previous Highlighted Error( Shift+ F2).

오류 스트라이프 마크 색상은 여기에서 변경할 수 있습니다.

오류 스트라이프 표시


아직 문제가있는 경우 Java 컴파일러 설정에서 "자동으로 프로젝트 빌드"를 활성화하고 저에게 효과가 있는지 확인하십시오.


내 소스 루트 폴더를 설정하지 않는 문제가 발생했습니다 (프로젝트 창-폴더를 마우스 오른쪽 버튼으로 클릭하고 디렉토리를> 소스 루트로 표시). 이 IDEA를 설정하지 않으면 파일을 구문 분석하지 않습니다.


IntelliJ 2017의 경우 :

모든 오류를 보려면 "문제"도구 창을 사용하십시오. 이 창은 위의 @pavan ( https://stackoverflow.com/a/45556424/828062 )에서 언급 한대로 "자동"빌드 / 메이크를 활성화하면 하단 / 사이드 탭에 나타납니다 .

여기에 이미지 설명 입력

To access this Problems panel, you must set your project to build automatically. Check the box for Preferences/Settings > Build, Execution, Deployment > Compiler > Build project automatically.

<code> 환경 설정 </ code> / <code> 설정 </ code>> <code> 빌드, 실행, 배포 </ code>> <code> 컴파일러 </ code>> <code> 자동으로 프로젝트 빌드 </ code> 스크린 샷 코드>


Frankly the errors are really hard to see, especially if only one character is "underwaved" in a sea of Java code. I used the instructions above to make the background an orangey-red color and things are much more obvious.


Besides, you can choose going to next error only (ignore warning) by:

  1. Right click the Validation Side Bar.
  2. On the context menu, choose the Go to high priority problems only

it works for Intellij Idea 12


In IntelliJ Idea 2019 you can find scope "Problems" under the "Project" view. Default scope is "Project".

"문제"범위


In my case, I unknowingly unchecked 'Error Stripe Mark' option (Idea 2018.2: Settings > Editor > Color Scheme > General and expand `Error and Warnings' & click 'Error').

Fix is to check 'Error Stripe Mark' option of 'Error' (as highlighted in the below image). Now you will see the error marks in scrollbar area.

여기에 이미지 설명 입력


In my case, IntelliJ was simply in power safe mode


Do you have a yellow icon like this [_] at the bottom of the main window? It is a "type-aware highlighting" switch which could be disabled accidentally. You should re-enable it by clicking on the icon.

참고URL : https://stackoverflow.com/questions/11775315/intellij-show-where-errors-are

반응형