JavaScript Function List
JavaScript Function List adds a compact list of named functions from the active JavaScript file to VS Code's Secondary Side Bar. Functions stay in source order by default, and selecting one jumps straight to its declaration and selects the line.

Features
- Lists function names only, without arguments or return values
- Supports standard and
async functions
- Keeps functions in source order, with an optional alphabetical sort toggle
- Refreshes automatically as you edit or switch files
- Selects the declaration line when you choose a function
- Ignores anonymous callbacks, closures, promise handlers, comments, and strings
- Appears directly in the Secondary Side Bar
Supported JavaScript patterns
Plain named functions:
function foo(bar) {}
async function foo2(bar2) {}
Named object properties using the function keyword:
var obj = {
foo: function(bar) {},
foo2: async function(bar2) {}
};
Object shorthand methods and class methods:
var obj = {
foo(bar) {},
async foo2(bar2) {}
};
class Foo {
foo(bar) {}
async foo2(bar2) {}
}
Named function expressions assigned to variables:
var foo = function(bar) {};
const foo2 = async function(bar2) {};
The same object patterns also work inside module.exports = { ... }.
Usage
- Open a JavaScript file.
- Open the Secondary Side Bar with View > Appearance > Secondary Side Bar if it is hidden.
- Select Function List in the Secondary Side Bar.
- Select a function name to jump to it and select its declaration line.
Use the sort button in the view title to switch between source order and alphabetical order.
Intentional exclusions
The extension stays focused on explicitly named, traditional JavaScript functions. It does not list:
- Anonymous callbacks and closures
- Arrow functions
.then() or .catch() handlers
- Computed method names
- Getters and setters
- Functions found inside comments, strings, or template literals
Requirements
JavaScript Function List requires VS Code 1.106 or newer. Version 1.106 introduced direct extension contributions to the Secondary Side Bar.
Development
This extension is written in plain JavaScript and has no runtime dependencies.
npm test
To try it in VS Code, open this folder and press F5 to launch an Extension Development Host.
License
MIT