CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeffrey Palermo [MVP]

Software management consultant and CTO, Headspring Systems

New line shortcut keys for Visual Studio 2005 - level 200

I am a big fan of shortcut keys.  I find that if I can keep my hands on the keyboard and not reach for the mouse, my productivity stays high.  First, I want to say thanks to Steve Donie for this change in my mindset.  Steve has a key for everything, and if there is not a key for it, he has a batch script with a shortcut key mapped.  Below, I'll illustrate some shortcut keys I love.  Note, I use many, many shortcut keys that hook into Resharper, but these shortcut keys work in Visual Studio 2005.

ctrl+enter: Insert a line above the current line and jump to the new line
before:

after:

ctrl+shift+enter: Add a line below the current line and jump to the new line
before:

after:




Comments

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# February 2, 2007 8:15 AM

nyuser98 said:

Yes it is very nice. I am using this feature since last two years in Java Eclipse IDE.

# February 2, 2007 8:32 AM

The Original .NET Geek said:

When Jeff Palermo talks people should listen ;). He just posted an article on how to better stay off

# February 2, 2007 9:28 AM

asdkljfhas said:

Isn't shift+enter the same thing as just enter?

# February 2, 2007 11:13 AM

Jeffrey Palermo said:

asdkljfhas,

Yes it is.  Note to self:  Don't blog so early in the morning.

# February 2, 2007 11:22 AM

stevedonie said:

Thanks for the reference. I started using the keyboard very heavily in my first job, where I developed software for blind people. Blind people have terrible eye-hand coordination :-) This necessitates that they do EVERYTHING through the keyboard. In order to teach myself to be more like my customers, I would frequently drop my mouse down behind my desk so I couldn't reach it. When you start doing that, you start learning other ways of doing things.

# February 2, 2007 1:43 PM

Kamran said:

asdkljfhas, Palermo,

>Isn't shift+enter the same thing as just enter?

if you are refering to the post above, it says "ctrl+shift+enter" and not "shift+enter".

# February 3, 2007 4:36 AM

makka said:

# February 3, 2007 12:00 PM

makka said:

# February 4, 2007 4:33 AM

Jesper Hauge said:

Thanks ! Came in handy :)

On another note - how do you get VS 2005, to highlight the line with the cursor in it, I have been looking for this, but cannot find it in Options?

Regards

Jesper Hauge

# February 4, 2007 7:44 AM

Jeffrey Palermo said:

Jesper,

The line-highlighting is not a Visual Studio feature.  It's a Resharper feature.  You can read more about R# in one of my previous posts:

http://codebetter.com/blogs/jeffrey.palermo/archive/2006/08/02/BreadAndButterResharper.aspx

# February 4, 2007 2:22 PM

About Jeffrey Palermo

Jeffrey Palermo is a software management consultant and the CTO of Headspring Systems in Austin, TX. Jeffrey specializes in Agile coaching and helps companies double the productivity of software teams. Jeffrey is an MCSD.Net , Microsoft MVP, Certified Scrummaster, Austin .Net User Group leader, AgileAustin board member, INETA speaker, INETA Membership Mentor, Christian, husband, father, motorcyclist, Eagle Scout, U.S. Army Veteran, and Texas A&M University graduate. Check out Devlicio.us!

This Blog

Syndication