BT

Bringing Visual Studio's CodeLens Into Focus

by Jeff Martin on Mar 20, 2014 |

One of the most popular features shipping with Visual Studio 2013 Ultimate is CodeLens.  CodeLens provides meta-information about the source you are working with while you edit it.  When used in conjunction with Team Foundation Server (TFS), several useful stats are provided on the fly:  unit test results, change history, and work item history.  To this functionality the forthcoming Update 2 to VS2013 will add a new ability called Incoming Changes. 

Incoming Changes is intended to make working with multiple branches on TFS easier.  Another field is added to the CodeLens status (helpfully labeled “incoming change”) which when clicked (or accessed via hotkey ALT+6) will produce a tool tip with several new pieces of information:  the name of the branch a change occurred on, which changeset it is accessed on, the author, and a datestamp.

Why is this helpful?  Well it provides insight as to changes that are happening in the source tree while are working on your section.  Perhaps their work has no bearing on yours, but if it does negative collisions can be avoided.  Code diffs can also be performed to compare the upcoming change with the contents of the file in your editor.

The level of detail is configurable, so if you are interested in the full change history of intermediate branch merges you can enable them to be shown.  (The default is to hide them.)  The overall CodeLens feature itself is also configurable under the Options menu.  Incoming Changes and the other indicators CodeLens offers can be individually enabled/disabled as desired.

For a complete illustrated walkthrough, Microsoft’s Mathew Aniyan has provided an article describing Incoming Changes in detail.  To try out the feature for yourself, you will need Team Foundation Server 2013 Update 2 RC and Visual Studio 2013 Ultimate with Update 2 CTP2 applied. 

 

 

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT