简体   繁体   中英

Turn off any IntelliSense, compiler notices and warnings, and suggestions in Visual Studio 2019

I need to present a C# application's code as part of a presentation and it must be presented in the IDE itself. Thus, I want to disable any IntelliSense / compiler notices / warnings / code suggestions that might pop up mid-presentation, leaving only color coding.

For example, I do not wish dotted green and blue lines under fields like so:

在此处输入图像描述

How can I turn those off, and how can I turn them back on after presentation?

(Note: I use resharper for C#.)

There is no easy way to fully disable IntelliSense in Visual Studio. However, you can turn off (most of) those features that you want to hide.

For example, to prevent the display of those squiggles (for errors and warnings), use the following.

From the "Tools" menu, select "Options." In the pop-up, open the "Text Editor" node in the left-hand window and select the "General" sub-option. Then, in the right-hand pane, uncheck the "Show error squiggles" box.

在此处输入图像描述

You can disable/enable (many) other 'annoying' features in a similar manner, although finding where to do so is not always trivial. Remember to look also in the "All Languages" and "C#" sub-nodes (in the left-hand pane) for other features to disable/enable.

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