반응형

많은 사람들이 VSCode를 사용하는 이유는 무료, 가벼운 개발 환경과 다양한 확장 프로그램 지원이 있다.

Visual studio code, Pycharm pro, Android studio, Eclipse, Vi 등 많이 사용해 봤지만 VSCode가 가장 사용하기 좋았다. 당연히 디버깅 기능에 있어서는 Visual studio code나 Pycharm을 이길 수는 없지만, 그럼에도 확장 프로그램을 잘 사용한다면 어느 정도 해결할 수 있다.

이번에 소개하는 확장 프로그램은 Error Lens이다.

Error lens는 파일 작업을 하거나 새 프로젝트를 열 때 실시간으로 모든 오류와 경고를 보여주는 Visual Code의 확장 프로그램이다.

이 확장 프로그램은 많은 프로그래밍 언어 기술에서 사용할 수 있습니다. Python, Javascript, flutter 등으로 이 확장 프로그램을 사용해 볼 수 있습니다.

사용 방법은 간단하다. 설치만 하고 VSCode를 껐다 켜면 된다.

오류와 경고가 포함되어 있는 Python 코드 예시를 보겠다.

 

예시
from urllib import parse
import nump as np            

string_original = '34'fdv       
string_encoded = parse.quote(string_original)
string_decoded = parse.unquote(string_encodedd)
print(string_encoded

Error Lens가 적용되면 아래와 같이 실시간으로 오류와 경고를 보여준다.

별거 없다고 볼 수 있지만 사용하다 보면 굉장히 편하다.

Flutter도 당연히 잘 된다.

Error Lens에는 구성 설정 섹션도 있다. 지연을 설정하여 오류를 표시하고 각 오류 유형에 대한 색상을 변경할 수 있다.

github 주소

https://github.com/phindle/error-lens

 

GitHub - phindle/error-lens: Visual Studio Code extension which enhances the display of errors and warnings.

Visual Studio Code extension which enhances the display of errors and warnings. - GitHub - phindle/error-lens: Visual Studio Code extension which enhances the display of errors and warnings.

github.com

 

728x90
반응형

'VSCode' 카테고리의 다른 글

[VScode] Visual Studio Code Theme 추천  (0) 2021.02.25
[VSCode] VSCode JAVA 세팅.  (0) 2021.01.18
[VSCode] VSCode에서 Jupyter Notebook 사용!  (0) 2021.01.09
[VSCode] Python Pylance 자동완성  (0) 2021.01.09
[VSCode] Python pylint  (0) 2020.12.08

+ Recent posts