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 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.
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.
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.
Press Shift + F12 to find all references.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With