Partilhar via


Visual Studio 2013: Insert a Line

This is another quick but useful feature. Let’s say you have some code:

5-17-2012 11-37-10 AM

 

And you need a line, either, above or below the line your cursor is on. Not a problem! Just press CTRL+ENTER for a line above:

5-17-2012 11-38-47 AM

 

Or CTRL+SHIFT+ENTER for a line below the current line:

5-17-2012 11-40-47 AM

Comments

  • Anonymous
    August 06, 2013
    maybe you should change title, instead of 2013, put 2003 - this is really old feature

  • Anonymous
    August 06, 2013
    Jirí, it's not an old feature. It's a feature of an extension called Productivity Power Tools. :)

  • Anonymous
    August 06, 2013
    Hey Jiri and Kim :) Jiri -- So, yes, it is an old feature but you may have missed the post where I said I would be going back through the highlights from my book to update the material for 2013. Anything new will have the word "Preview" in the title to distinguish it from the old stuff that is getting updated. Kim -- Actually this stuff predates the Power Tools by quite a bit. I know this feature goes back to at least 2005 and possibly further (as Jiri has indicated) but I haven't verified it any further back myself. Z

  • Anonymous
    August 07, 2013
    This feature is not working for me in 2013 any ideas why?

  • Anonymous
    August 08, 2013
    The comment has been removed

  • Anonymous
    August 08, 2013
    The comment has been removed