Function InspectorA lightweight VS Code extension for exploring functions, methods, and classes across your active file or entire workspace. Function Inspector provides a tree-based view of your code structure with support for function statistics, source navigation, multi-selection, copying, comparison, and customizable display options. FeaturesActive File ModeCommand:
Shows symbols from the currently opened file editor. Displays:
Includes:
Workspace ModeCommand:
Scans supported files across the workspace. Features:
Clicking a file node opens the editor. Select one or more files to see their function, line, and function-line counts against workspace totals. Excluding filesUse the down-arrow button in the sidebar toolbar to enter comma-separated file names or glob patterns, for example:
File names are matched anywhere in the workspace. Patterns are saved for the workspace and applied to future scans. Clear the input to remove all exclusions. Sidebar ControlsRefresh buttonPerforms a hard refresh by click the refresh symbol in the Function Inspector sidebar. Clears:
Then rebuilds the tree. Useful when:
Collapse AllUse the built-in Collapse All button in the tree view toolbar. Quickly collapse the entire explorer tree. Display SettingsOpen Display Options to choose which items are enabled. Checked options are on. Options include function details, parameters, paths, and the workspace summary. The workspace summary shows file, function, and function-line counts, followed by total lines and total function lines. Selecting files shows their counts against workspace totals. If a language provider returns no symbols for any scanned file, a warning appears in the summary. Function ActionsAvailable from nodes in the Function Inspector view Select FunctionOpens the source file and selects the full function body. Copy FunctionCopies the full function source to the clipboard. Multiple functions can be selected and copied at once. Compare FunctionsSelect two functions and right click to select compare functions. Command Palette CommandsOnly these commands appear directly in the Command Palette:
Other actions are available through the explorer UI. Language SupportSymbol discovery is therefore handled by the language provider extensions rather than by a custom parser built into Function Inspector. This allows Function Inspector to work with any language that provides compatible document symbols. Without these extensions:
CachingFunction Inspector caches:
Cached results are reused for unchanged documents and invalidated when a document is edited. Use Refresh to clear the cache and rescan. Known IssuesSymbol AvailabilityLanguages expose symbol trees differently. Examples:
Results vary by:
Large WorkspacesWorkspace scans process up to eight files at a time to avoid overwhelming language providers. Progress and statistics update as each 10% of files is processed. Exclude generated or otherwise unnecessary files with the toolbar input to reduce scan time. Performance depends heavily on language provider performance. Python isort Server CrashesSome Python setups may display errors like:
This can be caused by the Python environment or formatter extension. Missing Functions/ClassesLocal functions and nested methods depend on the language provider. Some languages may omit nested symbols. Release Notes1.0.0Initial release. Features:
1.6.0Updated for the love of the game Features:
2.0.122Last one kinda broke it but we back Features:
|