简体   繁体   English

无法在Visual Studio中添加行号

[英]Unable to put line numbers in Visual Studio

I am trying to put line numbers in Visual Studio. 我试图在Visual Studio中添加行号。 Usually I go for Tools -> Options -> Text Editor -> C# 通常我会去工具 - >选项 - >文本编辑器 - > C#

A new machine was assigned to me with preinstalled VS 2008. I am unable to find the C# option. 预安装的VS 2008为我分配了一台新机器。我无法找到C#选项。

Any solution ? 有解决方案吗 Thanks in Advance 提前致谢

在此输入图像描述

First, you need to check the box labeled "Show all settings" in the lower left-hand corner. 首先,您需要选中左下角标有“显示所有设置”的框。

Then, you can expand "Text Editor", select "C#", and check "Line numbers". 然后,您可以展开“文本编辑器”,选择“C#”,然后选中“行号”。 (You can also enable this setting for all languages, rather than individual ones, if you prefer.) (如果您愿意,也可以为所有语言启用此设置,而不是单个语言。)

Visual Studio选项对话框

And while you're at it, you probably want to crank up "Animate environment tools" to the max. 当你在它的时候,你可能想要最大限度地提高“Animate环境工具”。 No point in waiting around on the IDE to show pretty animations when you have code to write! 当你有代码要编写时,没有必要在IDE上等待显示漂亮的动画!

Check the "Show All Settings" checkbox at the bottom of the dialog. 选中对话框底部的“显示所有设置”复选框。 It should then show all supported languages, although you may be better setting "All Languages" rather than setting it for each individual language.. 然后它应显示所有支持的语言,尽管您可能更好地设置“所有语言”而不是为每种语言设置它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM