菜单栏 工具->选项->文本编辑器->所有语言->CodeLens 勾上即可 转载于:https://www.cnblogs.com/Robbery/p/VisualStudio-CodeLens.html