Visual Studio 2005 KB shortcut

A

Avi

Hi,
I am using Visual Studio 2005.

Is there any Keyboard shortcut to take cursor to beginning of current
function.
Basically, code have functions over 500+ lines, while going through
function,
sometimes I want to go to beginning of function.

Thanks,
Avi
 
P

Peter Macej

There are several ways how to do it:

1. Menu "Edit - Previous method" takes you to the beginning of the
method if you are inside it or to the previous method if you are on
method's first line. You can assign your own shortcut to it. The
corresponding command name is Edit.PreviousMethod.

2. Better approach, which always takes you to the beginning of the
current method is a macro shipped with VS 2005. Its name is
Macros.Samples.VSEditor.BeginningOfFunction. You can assign a shortcut
to it, see how at http://www.helixoft.com/blog/archives/8

3. Use excellent MZ-Tools add-in (http://www.mztools.com) which has this
functionality.
 
A

Avi

There are several ways how to do it:

1. Menu "Edit - Previous method" takes you to the beginning of the
method if you are inside it or to the previous method if you are on
method's first line. You can assign your own shortcut to it. The
corresponding command name is Edit.PreviousMethod.

2. Better approach, which always takes you to the beginning of the
current method is a macro shipped with VS 2005. Its name is
Macros.Samples.VSEditor.BeginningOfFunction. You can assign a shortcut
to it, see how athttp://www.helixoft.com/blog/archives/8

3. Use excellent MZ-Tools add-in (http://www.mztools.com) which has this
functionality.

--
Peter Macej
Helixoft -http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code

Thanks a lot :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top