Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2013 CodeLens

When I open a project from the Visual Studio Team Services (scrum 3 template) I only get the CodeLens reference count. Is this a bug in VS? Why do I not have CodeLens with full TFS versioning Comments, Edited By, etc.?

FYI: I have enabled all options in Visual Studio Tools > Options > CodeLens.

I also tried the following with no success:

  • Create a new project in Visual Studio Team Services.
  • Disable and re-enable CodeLens.
like image 511
Peter M. Avatar asked Aug 27 '13 21:08

Peter M.


People also ask

How do I enable CodeLens in Visual Studio?

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.

What is CodeLens in Visual Studio code?

CodeLens appears above functions, classes, interfaces, traits, properties, and constants. This margin provides quick contextual information about your code - references, implementations, overrides, or the method prototype. Upon clicking on the text, the detailed window is opened.

How do you check who made changes in VS code?

Visual File History view # The Visual File History view allows you to quickly see the evolution of a file, including when changes were made, how large they were, and who made them. Use it to quickly find when the most impactful changes were made to a file or who best to talk to about file changes and more.


1 Answers

There is an update!

Currently CodeLens is being developed for Visual Studio Team Services, currently in Public Preview for what I have read so far, in US and West-Europe.

Requirements:

  1. Be using Visual Studio Ultimate 2013 Update 4, or Visual Studio 2015 (Preview or later version).
  2. Check your code into Team Foundation Version Control in Visual Studio Team Services.

Just updated to VS Ultimate Update 4, already had a solution setup on Visual Studio Team Services, works great as expected.

troubleshoot, CodeLens not appearing?

  1. Close all Visual Studio Instances.
  2. Remove the cache from %localappdata%\Microsoft\VisualStudio Services\5.0\
  3. Reopen Visual Studio, open the solution from Visual Studio Team Services.

I'm not sure if it was necessary to do this for me, I did it, looked like it had no effect and the codeLens still didn't appear. While I was typing out a new question they suddenly appeared. So it could take a few minutes.

Source: CodeLens in Visual Studio Team Services is now in public preview

For Visual Studio 2015: Should be available by default. Source. I'm using Visual Studio 2015 Enterprise and it works good, even more then in visual studio 2013.

like image 160
CularBytes Avatar answered Sep 18 '22 12:09

CularBytes