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

LOC Counter

Sachin

|
16 installs
| (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 projects.

LOC Counter provides a simple and convenient way to understand the size and structure of your codebase by displaying line counts for your project files.

✨ Features

  • 📊 Count total lines of code in your project
  • 📁 View line counts by individual file
  • 🔤 Group code by file type
  • 🚫 Automatically ignores node_modules
  • ⚡ Fast and lightweight
  • 🧹 Helps you understand the size and structure of your codebase
  • 🖥️ Dedicated LOC Counter icon in the VS Code Activity Bar

🚀 How to Use

1. Install LOC Counter

Install the LOC Counter extension from the Visual Studio Code Marketplace.

2. Open Your Project

Open any project or folder in Visual Studio Code.

3. Open LOC Counter

After installing the extension, you will see the LOC Counter icon in the left-side Activity Bar of VS Code.

Click the LOC Counter icon to open the extension.

4. View Your Code Statistics

LOC Counter will analyze your project and display the line count information.

You can view the number of lines for individual files and get an overview of your codebase.

📊 Example

LOC Counter can display information such as:

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

📁 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

🚫 Excluded Directories

The following directories are automatically 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 or configuration are required.

Simply install the extension, open your project, and click the LOC Counter icon in the VS Code Activity Bar.

📄 License

MIT

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