How to switch on CodeLens in Visual Studio 2017?

2019-01-23 11:23发布

I have installed Microsoft Visual Studio Community 2017. I cannot find any option to switch on CodeLens. Is this feature removed from this version?

3条回答
唯我独甜
2楼-- · 2019-01-23 11:51

Visual Studio Community dose not support CodeLens , only Visual Studio Professional and Visual Studio Enterprise give this Integrated Development Environment Facility. For more information go to this link enter link description here

For Visual information Please See this Image: Visual Studio Community supported Features

enter image description here

查看更多
地球回转人心会变
3楼-- · 2019-01-23 12:03

Resharper has "Find Usages" and "Find Usages Advanced". The default keyboard shortcut for "Find Usages" is Shift+F12. If you can live with using that shortcut instead of clicking on the reference link above a type then you're good to go. I've moved the results window from the bottom to the left and enabled auto-hide. Good enough for me.

查看更多
虎瘦雄心在
4楼-- · 2019-01-23 12:16

CodeLens is not available in the Community editions. You need Professional or higher to switch it on.

In VS2015, one way to "get" CodeLens was to install the SQL Server Developer Tools (SSDT) but I believe this has been rectified in VS2017.

查看更多
登录 后发表回答