Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Reference CounterNew to Visual Studio Code? Get it now.
Reference Counter

Reference Counter

Gosvig123

|
810 installs
| (1) | Free
Counts and displays the usage of references in your code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Reference Counter for VSCode

This is an open source extension for Visual Studio Code that displays the number of times a given function, class, or method is called in your codebase as a number in the editor.

If you like this extension, please consider starring the repo on GitHub: reference-counter, if you have any suggestions or feedback, please open an issue on the repo. We also welcome pull requests as long as they are in the spirit of the project and backwards compatible!

The goal of this extension is to help you understand usage of functions, classes, and methods in your code, while you are writing it.

I developed this extension to find unused functions, classes, and methods in my codebase, and understand how much care I need to take when refactoring, portrayed in a single number.

A Visual Studio Code extension that displays the number of references for functions, classes, and methods directly in your code editor.

Features

  • Shows reference counts inline next to:
    • Functions
    • Classes
    • Class methods
  • Automatically updates when you edit code
  • Supports multiple programming languages:
    • Python (.py)
    • JavaScript (.js, .jsx)
    • TypeScript (.ts, .tsx)
  • Configurable file exclusion patterns

Configuration

You can configure the extension through VS Code settings:

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft