Search
Monday, November 19, 2018 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  

Whats with all those vertical lines in VS2013?

Feb 3

Written by:
Monday, February 03, 2014 10:27 PM  RssIcon

image

You installed VS 2013 and now you see a bunch of different coloured vertical lines, WHAT ARE THEY?

So, you’ve bitten the bullet and installed Visual Studio 2013!  Now you see a bunch of vertical lines/bars in your code.  What are they and how do you toggle them on and off?  Great question (I actually had a friend, John, ask me about).

The quick answer is, they are vertical guides to help you keep track of your code blocks, your loops, condition statements, etc.

This is what I mean.

image

Now, the next logical question is, how do you turn them off and on again?  Great question!  Goto Tools, Options, Productivity Power Tools, then Other Extensions, then toggle the “Show code structure in the editor” option.

SettingBracesLines

To be honest, at first, I LOVED this feature.  But after a few weeks, I’m not so sure?  Why?  Well, with the auto-format on Save, and the CTRL+S shortcut, you know very quickly if you’re code is “good” or not (ie you got the right method names, parameter types, etc).  If you don’t get the formatting, then you need to do more work.  Also, I try to keep my methods, loops, condition code blocks tight, small, so they’re usually not so big as I can’t see the end block.  Having said that, there are some times you just need a big block and you need some help.  Well here it is.

Now that you know what those lines are, and how to turn them off and on again, it’s time to grab a coffee and get coding!

 

PS  The more astute readers (not me, I just realized it tonight actually), those lines are actually colour coded!  If you’re paying attention, you’ll notice the class line colour (gray) is different from the class line (jade) from the property line (blue) from the get/sets (grey).  Interesting.  Now if I could just remember that!  LOL

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
     
  
Copyright 1999-2012 by PCHenry.com   Terms Of Use  Privacy Statement