PDA

View Full Version : How to see a list of subroutines/functions for a file in Visual Studio


tjackson
01-25-2006, 11:36 PM
I'm just starting to use Visual Studio with LF7.1. I've used LF5.6 with ED4W for the past 5 years and I found the pull-down list of subroutines/functions in that IDE very helpful when navigating within a module file. Is there any way to do this in Visual Studio?

LNSSoftware
03-01-2006, 08:30 PM
Pretty straight forward:

Open the file in question
Find in Files (Ctrl+Shift+F)
Look for " subroutine " (spaces guarantee we are looking for a subroutine)
Set "Look in" to "Current Document"
Uncheck match case
Uncheck "Use"
Uncheck look in subfolders
Click Find
To go to a particular subroutine, double-click the line that was found.
Repeat for functions


Note, if you use the word subroutine your documentation or you want a consolidated list, you can always create a regular expression, such as:

[function|subroutine] *[a-z0-9_]*\(

to match only the subroutine declarations.