Nilay Vishwakarma
Nilay Vishwakarma

Reputation: 3363

How to switch on CodeLens in Visual Studio 2017?

I have installed Microsoft Visual Studio Community 2017. I cannot find any option to switch on CodeLens. Is this feature removed from this version?

Upvotes: 29

Views: 18785

Answers (6)

Ogglas
Ogglas

Reputation: 70244

For Visual Studio Community 2019 a lesser CodeLens version is available:

enter image description here

https://visualstudio.microsoft.com/vs/compare/

Visual Studio Community 2019:

enter image description here

Visual Studio Professional 2019:

enter image description here

Upvotes: 0

Davatar
Davatar

Reputation: 156

CodeLens is now available since VS 2017 Community Update 8, but it only contains Requests and Exceptions of Application Insights, no References:

From Dante Gagne [MSFT] on Oct 31, 2018 at 05:38 PM:

The infrastructure for CodeLens has been released in the Visual Studio 2017 Update 8. Please install and let us know your feedback. Please continue to provide feedback and help us make Visual Studio even better.

Source

It can be enabled in the Text Editor Options under All Languages --> CodeLens --> Enable CodeLens

Upvotes: 3

MonkeyDreamzzz
MonkeyDreamzzz

Reputation: 4378

If you like CodeLens you can install Visual Studio 2019 Community

Microsoft has enabled it even for the Community edition. See Integrated Development Environment on Visual Studio Comparison. Most features are enabled.

See CodeLens for Everyone What's New in Visual Studio 2019 for more info.

Upvotes: 4

Abhay Agarwal
Abhay Agarwal

Reputation: 89

Visual Studio Community dose not support CodeLens , only Visual Studio Professional and Visual Studio Enterprise give this Integrated Development Environment Facility. For more information go to this link enter link description here

For Visual information Please See this Image: Visual Studio Community supported Features

enter image description here

Upvotes: 6

autonomatt
autonomatt

Reputation: 4433

Resharper has "Find Usages" and "Find Usages Advanced". The default keyboard shortcut for "Find Usages" is Shift+F12. If you can live with using that shortcut instead of clicking on the reference link above a type then you're good to go. I've moved the results window from the bottom to the left and enabled auto-hide. Good enough for me.

Upvotes: 2

Jimmy
Jimmy

Reputation: 28446

CodeLens is not available in the Community editions. You need Professional or higher to switch it on.

In VS2015, one way to "get" CodeLens was to install the SQL Server Developer Tools (SSDT) but I believe this has been rectified in VS2017.

Upvotes: 37

Related Questions