Mastering Visual Studio 2017
上QQ阅读APP看书,第一时间看更新

Structural guide lines

Visual Studio 2017 also focuses on a new feature called Structural guide lines. The Structural Guide Lines are drawn in the editor so that you can easily visualize the structure of the code that you are currently working on. When you mouse hover on the guideline, a tooltip containing the context of the current code block relative to its ancestor blocks is displayed. Here, in the following screenshot, you can see how the lines are drawn and how the tooltip is displayed with its ancestor blocks when you hover over the guide lines of the using block:

This feature is enabled by default. If you want to disable it, you can navigate to the Visual Studio options dialog at the path: Tools | Options | Text Editor | General, and uncheck the checkbox labelled Show structure guide lines.

To enable it again, follow the same path and check the same box, as shown in the preceding screenshot.