Why is Visual Studio not showing code lines - Stack Overflow

Suddenly, after restarting Visual Studio it refuses show any code lines. It shows form grafics ok and t

Suddenly, after restarting Visual Studio it refuses show any code lines. It shows form grafics ok and the programs work fine. I have reloded project, restarted VS, restarted my computer, tested with older projects but the result is the same. There are simply no visual code lines.

Anyone else experiensed this? / Linnéa

Suddenly, after restarting Visual Studio it refuses show any code lines. It shows form grafics ok and the programs work fine. I have reloded project, restarted VS, restarted my computer, tested with older projects but the result is the same. There are simply no visual code lines.

Anyone else experiensed this? / Linnéa

Share Improve this question asked Mar 21 at 13:36 Linnéa ElvesjöLinnéa Elvesjö 1 2
  • What do you mean by code lines? Do you mean the line numbers? I think there is a setting to show that in preferences/settings. Or do you mean your actual code is not showing up when you open the file? – Brad Commented Mar 21 at 13:48
  • I mean the actual code. The headlines are shown, but not the lines themselves – Linnéa Elvesjö Commented Mar 21 at 21:09
Add a comment  | 

3 Answers 3

Reset to default 1

=> You can go to Tools > Options > Text Editor > All Languages and then check "Line numbers" it will then show you line numbers.

If checkbox is "indeterminate" (showing dash instead of checked) state then click twice to mark it as checked.

=> if still issue not resolved, you can try resetting all Visual Studio settings:

To reset Visual Studio settings, use the "Import and Export Settings" wizard, selecting "Reset all settings" or use the command line with devenv.exe /ResetSettings

To reset using wizard follow this steps: Visual Studio - Reset all settings

I had a similar issue and it was due to the missing BOM after copying the project from my linux host.

After updating to ver. 17.13.4 the problem is gone. Still no explanation why it happened.

Thanks all of you for trying to help me. Wish you alla a happy springtime.

/ Linnéa

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744349596a4569894.html

相关推荐

  • Why is Visual Studio not showing code lines - Stack Overflow

    Suddenly, after restarting Visual Studio it refuses show any code lines. It shows form grafics ok and t

    7天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信