Click here to Skip to main content
13,866,049 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


7 bookmarked
Posted 9 Jul 2014
Licenced CPOL

What is CodeLens?

, 9 Jul 2014
Rate this:
Please Sign up or sign in to vote.
In this blog, we will discuss about CodeLens, a new feature of Visual Studio 2013.

Code lens is a new feature in Visual Studio 2013 which helps us to understand three important things about our code while we are coding inside Visual Studio.

All these three things (Impact, test and latest) are seen right above your class / method when you code in Visual Studio as shown in the below figure:

Impact: First thing code lens shows is when we change the code what is the impact of those changes. For instance, in the above figure, you can see it stating that if you make any changes to the log method, it will be impact 1 reference.

If you click on references further, it will also show which classes it’s referencing. With this, we come to know the level of impact this change will have further.

In the below screen, it’s stating that “ConsoleApplication2” and “UnitTest1.cs” are the classes.

If you further click on “Show on Code Map” menu you should see a graphical representation of dependencies.

Test: Second important thing code lens tells is whether this method was unit tested or not. For instance, you can see it says 1 passing means this method was unit tested.

Latest: Third thing it tells whether this is a latest code or not. You can see the last menu which states this is not a latest code and you need to do a get latest from the server.

But now for the bad news nothing is free, code lens is currently available only in ultimate edition. Wish it was free as air….. ;-)

Below is a nice and short video of codelens created by team.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

You may also be interested in...

Comments and Discussions

SuggestionSince I use 2015 community, looking for codelens solution Pin
4Dinand215-Aug-15 1:43
professional4Dinand215-Aug-15 1:43 
GeneralRe: Since I use 2015 community, looking for codelens solution Pin
Phillip H. Blanton18-Nov-18 18:12
memberPhillip H. Blanton18-Nov-18 18:12 
GeneralRe: Since I use 2015 community, looking for codelens solution Pin
4Dinand218-Nov-18 21:30
professional4Dinand218-Nov-18 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.190214.1 | Last Updated 9 Jul 2014
Article Copyright 2014 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid