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:

7 comments

  1. nyuser98

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

  2. asdkljfhas

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

  3. asdkljfhas,
    Yes it is. Note to self: Don’t blog so early in the morning.

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

  5. Kamran

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

  6. Jesper Hauge

    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

Comments are closed.