Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable CodeLens for Visual Studio 2017 Community [duplicate]

I recently installed Visual Studio 2017 Community and noticed that there is no CodeLens. I had CodeLens enabled on Visual Studio 2015 Community so I'm hoping that its also available for VS 2017 Community. How can I do so? Or is it no longer available for VS 2017 Community edition?

Enabling CodeLens on Visual Studio 2015 Community CodeLens on Visual Studio 2015 Community

like image 699
kimbaudi Avatar asked Mar 24 '17 04:03

kimbaudi


People also ask

How do I enable CodeLens in Visual Studio community?

CodeLens is available in Visual Studio Community edition, however, the source control indicators are not available in this edition. To choose the indicators that you want to see, or to turn CodeLens off and on, go to Tools > Options > Text Editor > All Languages > CodeLens.

How do I enable references in Visual Studio?

Restart Visual Studio, create a new C# UWP app project, and then right-click on the project and choose Add Reference. Go to the Windows tab, then the Extensions sub-tab, and select the Extension SDK.

What is CodeLens in Visual Studio?

With Microsoft Visual Studio 2019 version 16.1, P4VS supports the CodeLens feature. With the relevant CodeLens option enabled (which is the default), you can view the names of users who made changes to classes, functions, and methods throughout the code and get a preview of up to five changelists.

How do I show reference numbers in Visual Studio?

Press Shift + F12 to find all references.


1 Answers

You can see the officially enabled set of features per Visual Studio edition on the Compare Offerings page of the Visual Studio website.

A note on CodeLens + SSDT in particular: CodeLens was not officially supported as part of Visual Studio 2015 Community, nor is it supported in Visual Studio 2017. While some earlier versions of the SSDT installer for Visual Studio 2015 may have enabled the feature this was an error fixed in later updates. The official policy is that CodeLens is available in Visual Studio Professional and higher editions.

like image 88
Kevin Cunnane Avatar answered Sep 20 '22 13:09

Kevin Cunnane