简体   繁体   中英

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...

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中您必须转到工具 - >选项 - >文本编辑器 - >纯文本,然后您必须勾选“显示”标题下的“行号”复选框。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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