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

LOC Counter

Sachin

| (0) | Free
Count lines of code in your VS Code project by file type, with support for excluding folders like node_modules.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LOC Counter

Count and analyze lines of code in your Visual Studio Code project.

LOC Counter provides a simple way to understand the size and structure of your codebase by counting lines of code grouped by file type.

Features

  • 📊 Count total lines of code in your project
  • 📁 View line counts by file
  • 🔤 Group code by file type
  • 🚫 Automatically ignores node_modules
  • ⚡ Fast and lightweight
  • 🧹 Helps you understand the size of your codebase

Supported File Types

LOC Counter can analyze common programming and web development files, including:

  • JavaScript
  • TypeScript
  • JSX
  • TSX
  • HTML
  • CSS
  • JSON
  • Python
  • Java
  • C
  • C++
  • And more

How to Use

  1. Open a project in Visual Studio Code.

  2. Open the Command Palette:

    Ctrl + Shift + P

  3. Search for:

    LOC Counter

  4. Run the command.

  5. The extension will analyze your project and display the line count.

Example

The extension can provide information such as:

File Lines
App.jsx 245
ProfilePage.jsx 382
server.js 156
index.css 120

Excluded Directories

The following directories are excluded from analysis:

  • node_modules
  • .git

This prevents dependencies and Git metadata from affecting your project statistics.

Why LOC Counter?

LOC Counter is useful for developers who want a quick overview of their project's codebase without manually counting files.

It can be useful for:

  • Developers
  • Students
  • Code reviews
  • Project analysis
  • Learning projects
  • Understanding project growth

Requirements

No additional dependencies are required after installing the extension.

Release Notes

0.0.1

Initial release of LOC Counter.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft