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
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.
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.
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.