简体   繁体   English

Visual Studio 2019 未在 Mac 上强调错误

[英]Visual Studio 2019 not underlining errors on Mac

Visual Studio is not underlining errors. Visual Studio 没有为错误加下划线。 For example on my PC if type out: private int myInt例如在我的电脑上,如果输入:private int myInt

it will put a little red underline after because i forgot ;因为我忘记了,它会在后面加上一点红色下划线;

on my mac it does nothing making debugging a lot harder.在我的 Mac 上,它不会使调试变得更加困难。

I did a few google searches but the only thing i find is to go to Tools → Options → Text Editor → C# → Advanced → Underline errors.我做了一些谷歌搜索,但我找到的唯一方法是转到工具 → 选项 → 文本编辑器 → C# → 高级 → 下划线错误。 Tools doesn't have an options tab on the Mac version, and when I found the Text Editor → C# under preferences, theres no Advanced option.工具在 Mac 版本上没有选项选项卡,当我在首选项下找到文本编辑器 → C# 时,没有高级选项。

The setting is View -> Inline Messages.设置为查看 -> 内联消息。 HOWEVER: This was set correctly and it still didn't work for me.但是:这是正确设置的,但它仍然对我不起作用。 After a combination of fixing compile errors (letting it compile once) and then restarting VS, it is now working for me.在修复编译错误(让它编译一次)然后重新启动 VS 的组合之后,它现在对我有用。

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

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