Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 685
Nilay Vishwakarma Avatar asked Mar 03 '17 16:03

Nilay Vishwakarma


People also ask

What is Visual Studio CodeLens?

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 view changes made in Visual Studio?

Visual Studio maintains a history of file changes. Modified files are marked with a red check mark in the Solution Explorer. You can compare your changes with the original file by right-clicking on the file name and selecting Compare with Unmodified. The Diff window shows new code in green and removed code in red.


Video Answer


2 Answers

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.

like image 192
Jimmy Avatar answered Oct 08 '22 06:10

Jimmy


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

like image 30
Abhay Agarwal Avatar answered Oct 08 '22 07:10

Abhay Agarwal