ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash



 Top ASP 101 Stories Top ASP 101 Stories
What is ASP?
VBScript Classes: Part 1 of N
Migrating to ASP.NET

QUICK TIP:
VBScript's Line Continuation Character
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates


Quick Tips


Instantly Find Sub and Function Declarations

Trying to quickly make sense of unfamiliar code can be quite frustrating. This tip will show you how you can instantly jump from the usage of any subroutine directly to its definition using any flavor of Visual Studio. This huge time saver lets you easily locate code that you might otherwise have spent hours trying to find.

Assuming you've already opened the Web site or application with Visual Studio, the first step is to find a usage of the subroutine whose definition you're trying to find. Then simply place your cursor on the Sub or Function name and press the "F12" key on your keyboard. The code window will instantly move you to the declaration of the algorithm in question. This works even if the source code is located in a different file altogether.

Once you've examined the code or made any changes you may need to, you'll most likely want to return to your original location. Luckily Visual Studio provides a simple shortcut for this as well. Use the "Ctrl+-" keyboard combination and you'll end up right back where you started.

Jumping around unfamiliar code this way can take a little getting used to, but once you get used to using "GoToDefinition" ("F12") and "NavigateBackward" ("Ctrl+-"), you'll wonder how you ever got along without them.


Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to: webmaster@asp101.com.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers