I want to jump the cursor 5 lines down. Instead of hit "down arrow" key 5
times, is there any way I can use a keyboard shortcut to do it?
Another question is there a place I can assign keyboard shortcut. I know in
tools/options/environment/keyboard you can do it. But in my case, if I want
to assign a shortcut too move cursor down 5 lines and another shortcut to
move cursor down half a page with the cursor vertically locates in the
center of screen, how can I do it?
Thanks
-fj
Carlos J. Quintero [VB MVP] - 10 Oct 2006 14:57 GMT
You can create a macro like:
Sub MoveDown5()
DTE.ExecuteCommand("Edit.LineDown")
...
DTE.ExecuteCommand("Edit.LineDown")
End Sub
and then you can assign a keyboard shorcut to the command created for that
macro (Macros.MyMacros.Module1.MoveDown5 )

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
>I want to jump the cursor 5 lines down. Instead of hit "down arrow" key 5
>times, is there any way I can use a keyboard shortcut to do it?
[quoted text clipped - 8 lines]
>
> -fj