developer tip

Visual Studio Community Edition 2015 및 2017에서 누락 된 CodeLens 참조 수

copycodes 2020. 9. 13. 10:50
반응형

Visual Studio Community Edition 2015 및 2017에서 누락 된 CodeLens 참조 수


  1. Visual Studio Community Edition에서 참조 횟수 (코드 렌즈) 가 누락 된 이유가 있습니까?
  2. 옵션에서 활성화 할 수 있습니까?

다음은 Visual Studio 2015 및 2017 Community Edition의 스크린 샷입니다.

코드 렌즈가없는 방법

다음은 Visual Studio 2013의 스크린 샷입니다.

코드 렌즈를 사용한 방법

출처 : dailydotnettips.com


이것은 일반적인 참조 계산 기능이 아니라 CodeLens의 기능 중 하나 일뿐입니다. CodeLens는 Visual Studio 2015 Pro 이상 에서만 사용할 수 있습니다 . Visual Studio 2013에서는 Ultimate 전용 기능이었습니다.

최신 정보

다른 사람들이 언급했듯이 SSDT 또는 SSMS 2016을 설치하면 CodeLens도 활성화 될 수 있습니다. VS 2015 Community 다른 라이선스와 CodeLens와 같은 일부 확장 기능이없는 Pro 이기 때문 입니다. 확장 프로그램의 바이너리와 설정이 설치되어있는 한 Community는 확장 프로그램을 활성화합니다.

2019 업데이트

"CodeLens는 Visual Studio Enterprise에서만 찾을 수있는 기능이지만 Visual Studio 2019의 향후 미리보기에서 변경 될 예정입니다.이 기능은 2019 년에 Community Edition에서도 사용할 수 있을 것입니다." Visual Studio 2019의 새로운 기능


아래 링크에서 VS 2015 Community Edition (업데이트 1)이있는 2 대의 컴퓨터에 Visual Studio 2015 용 최신 SSDT 미리보기를 설치했고 CodeLens가 모든 프로젝트에서 작동하기 시작했습니다.

https://msdn.microsoft.com/en-us/library/mt204009.aspx

여기에 이미지 설명 입력


I have Visual Studio 2015 Community edition and it originally did NOT have CodeLens.

However, after going to Tools -> Extensions and Updates -> Product Updates and then downloading SSDT and installing all options within the SSDT package, my VS 2015 Community Edition now miraculously has access to CodeLens.


This feature has been disabled in Visual Studio Community 2017, although it sounds like it was temporarily available in pre-release versions.

The Visual Studio Team issued this statement on the 14th of March 2017:

An authoring error in the SQL Server Data Tools resulted in the capability temporarily showing up incorrectly in Visual Studio Community when installed; the change you see is a result of correcting that mistake.

Also, on the Compare Visual Studio 2017 Offerings page CodeLens appears to not be available in the Community edition.


I'm not allowed to Comment on R. Richards answer above, so posting this as a separate answer: CodeLens references disappeared for me too when I upgraded my VS Pro to 2017. But only on my Desktop ("same" upgrade behaved differently on my laptop, where CodeLens settings apparently unaffected). Anyway, very easy to resolve just Enable CodeLens under Text Editor : All Languages


An alternative is to just right-click the member and select 'Find All References' or the hot key shift + F12*. Not only you will find the count of references grouped by project, but also the underlying code lines and their classes.

* Visual Studio 2017 커뮤니티에 따라.


도구 탭에서 옵션을 선택합니다.

열린 창에서 다음과 같이 선택하고 확인을 누릅니다. 예

행운을 빕니다!!!

참고 URL : https://stackoverflow.com/questions/33144785/missing-codelens-references-count-in-visual-studio-community-edition-2015-and-20

반응형