Text editor vertical lines on statements

后端 未结 5 715
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 23:51

In other text editors, such as Notepad++, if statements among other things had a vertical line connecting the if to the else, and the else

5条回答
  •  一生所求
    2021-01-03 23:57

    There is an easier way to get what you want in VS(not sure the versons preceding 2012 has it). For example if you write C++, it's: Tools >> Options >> Text Editor >> C/C++ >> Outline Statement Blocks, set it to True.

    enter image description here

    Then you can find a code block easily if you move mouse to the left column of the code editor. Here is what you get.

    enter image description here

    It doesn't show the block lines and it doesn't mark the block all the times unless you require it. When you need it, it will mark all the current block out.

提交回复
热议问题