VS 2013 CodeLens

泪湿孤枕 提交于 2019-12-04 05:20:26
CularBytes

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.

As DaveShaw answered, TFS 2013 is required, but I still had problems after installing TFS 2013. Turns out you need to have CodeIndexing enabled on the TFS Server. My codeindexing was on, but I think the index was corrupted somehow and I had to reindex it.

This is a good link (go to the Q&A section at the bottom):

http://msdn.microsoft.com/en-us/library/vstudio/dn269218%28v=vs.120%29.aspx

Here is the TFSConfig CodeIndex syntax:

http://msdn.microsoft.com/en-us/library/vstudio/dn280925(v=vs.120).aspx

Once you get your codeindex running, you have to do a get latest from Visual Studio and then your codelens should work.

Jonathan Boles

Server-side CodeLens indexing is not currently supported by the Visual Studio Team Services, only on-premises TFS. This is partly because of the potentially unbounded number of tenant accounts in the online service, each with its own background job to do the indexing of changesets. However this could change in the future.

Source: I worked on CodeLens.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!