Visual Studio社区版本2015和2017中缺少CodeLens引用计数 [英] Missing CodeLens references count in Visual Studio Community edition 2015 and 2017

查看:894
本文介绍了Visual Studio社区版本2015和2017中缺少CodeLens引用计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 在Visual Studio社区版中是否存在引用计数(代码镜头)缺失的原因?
  2. 是否可以在选项中启用它?
  1. Is there a reason why the references count (code lens) is missing in Visual Studio Community edition?
  2. Is is possible to enable it in the options?

以下是Visual Studio 2015和2017 Community Edition的屏幕截图:

Here is a screenshot of Visual Studio 2015 and 2017 Community edition:

这是Visual Studio 2013的屏幕截图:

Here is a screenshot of Visual Studio 2013:

源:推荐答案

这不是通用的引用计数功能,它只是CodeLens的功能之一. CodeLens仅在 Visual Studio 2015 Pro及更高版本中提供.在Visual Studio 2013中,这是一项仅用于Ultimate的功能.

This isn't a generic reference counting feature, it's just one of the features of CodeLens. CodeLens is only available in Visual Studio 2015 Pro and above. In Visual Studio 2013 it was a Ultimate-only feature.

更新

正如其他人指出的那样,安装SSDT或SSMS 2016可能也会启用CodeLens.这是因为VS 2015 Community is Pro,具有不同的许可证和一些缺少的扩展(如CodeLens).只要安装了扩展程序的二进制文件和设置,社区就会激活该扩展程序.

As others have noted, installing SSDT or SSMS 2016 may enable CodeLens as well. That's because VS 2015 Community is Pro, with a different license and some missing extensions like CodeLens. As long as an extension's binaries and settings are installed, Community will activate the extension.

UPDATE 2019

"CodeLens是仅在Visual Studio Enterprise中发现的功能,但是它将在即将发布的Visual Studio 2019预览版中进行更改,届时该版本还将在社区版中提供 " Visual Studio 2019的新增功能

"CodeLens has been a feature found only in Visual Studio Enterprise, but that will change in an upcoming preview of Visual Studio 2019, when it will also be available for the Community edition, likely in 2019" What's New in Visual Studio 2019

这篇关于Visual Studio社区版本2015和2017中缺少CodeLens引用计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆