Code Lens ~ Cool Feature in VS 2013

Hi All,

Here I have come with a new technical post on the cool feature “Code Lens”, introduced in Visual Studio 2013. This is an awesome feature and I wanted to share this with you all.

Code Lens is a new feature in Visual Studio 2013 to show information about your code in the code editor. Code information includes method references, tests associated with the method, code change history and the number of times the code has been changed. This leads to moving away from code editor and with code lens you can have the information displayed just by hovering over the code.

By default it is on in visual studio 2013 but we do have control over the information to be displayed. This you can do with the help of code information indicators in the options menu. In the previous versions, we right click on a method or with SHIFT +F12 we could see all the method references in another window, whereas with the availability of code lens, the references will be displayed just with the mouse hovering on the method.

Some of the cool features in code lens are below,

  • It displays authors who have recently made changes in the code.
  • It also displays number of change sets related to this method which on clicking provides the complete information of change sets.
  • It displays the number of tests that the method has been going through and with the tests running the code lens updates the test information.

This is one kind of a feature that every developer will welcome as it causes no burden in getting the code information in the code editor itself.

Following this, I have another introduction post on “Team Rooms“, a new feature in TFS 2013.

About Navi

It's been almost three years, am still crazy about her.. A day never passes without seeing her face..She is too sensitive to bid me bye for the day...My love and time for her increases day by day.. She envies my friends and wants all my time with her... That's my girl...Dot NET !!!! With graduation from SRM University, Naveeth started his career as a junior programmer analyst and with a vast exposure in technologies like Web Services, Windows Services and WCF. With technologies expanding, Naveeth acquired his certification as Microsoft Certified Solutions Developer which includes developing ASP .Net web applications using MVC 4, Windows Azure and Web Services and HTML5, CSS3 and JavaScript. Currently he is employed in Telliant Systems as Software Engineer, thriving to expertise on growing new technologies. Let me know your thoughts @ naveethmohammad@gmail.com
This entry was posted in Tech Buzz. Bookmark the permalink.

6 Responses to Code Lens ~ Cool Feature in VS 2013

  1. Useful Info Bro… If possible Can you please add some screenshots with the technical articles,hope that will help us to visualize the info…

Leave a reply to Sarathy Udhay Cancel reply