简体   繁体   English

如何显示在Visual Studio中打开的文本文件的行号?

[英]How to show line numbers of text file opened in Visual Studio?

是否有任何可以显示在Visual Studio中打开的所有文件的行号?

Browse to the following path: 浏览到以下路径:

Tools -> Options -> Text Editors -> All Languages 工具 - >选项 - >文本编辑器 - >所有语言

Now check the option Line Numbers 现在选中选项行号

And here you go! 你走吧!

In VS 2010, for text only... 在VS 2010中,仅限文本...

Tools -> Options -> Text Editor -> Plain Text -> General -> Display Line Numbers

For everything... 对于一切......

Tools -> Options -> Text Editor -> All Languages -> General -> Display Line Numbers

Go to Tools -> Options -> Text Editor -> All Languages. 转到工具 - >选项 - >文本编辑器 - >所有语言。 Check "Show line numbers" 选中“显示行号”

取决于您的Visual Studio版本,但在VS2012中您必须转到工具 - >选项 - >文本编辑器 - >纯文本,然后您必须勾选“显示”标题下的“行号”复选框。

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

相关问题 Visual Studio包:是否可以在文本行标记上显示工具提示? - Visual Studio Package: Is it possible to show tooltips on text line markers? Visual Studio 插件显示资源文件中的文本而不是代码 - Visual Studio plugin to show the text from a resource file instead of the code Visual Studio Windows 应用程序 - 在标签中显示数字 - Visual Studio Windows Application - Show numbers in label 无法在Visual Studio中添加行号 - Unable to put line numbers in Visual Studio 如何从 Visual Studio 的文本编辑器中删除虚线? - How to remove dotted line from text editor in visual studio? Visual Studio 扩展 - 打开文件后的焦点文件 - Visual Studio Extension - focus file after file is opened Visual Studio - 更改行号旁边的“行更改指示符”的颜色 - Visual Studio - change color of “line changes indicator” next to line numbers Visual Studio 2012如何访问用户的文本文件资源? - Visual Studio 2012 how to access text-file resources for user? 如何将文本文件中的值赋给visual studio c#? - How to assign values from text file to visual studio c#? 如何使用Visual Studio在C#中创建文本文件? - how to create a text file in c# using visual studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM