Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code CountNew to Visual Studio Code? Get it now.
Code Count

Code Count

im-zhong

|
579 installs
| (0) | Free
Count all your codes in your workspaces by lines!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Counter

Inspired by linux cli tool wc, instead of counting words, this tool will lazily counting all your codes in your workspaces by lines while following your .gitignore!

Features

  • This extension activates lazily as you interact with any files in supported languages:
    • c/c++
    • python
    • ts/js/tsx/jsx
  • It displays the count of code lines and comments of current active file directly in the status bar.
  • Additionally, it aggregates and shows the total line count for all files within the current workspace that match the language of the active file, while intelligently excluding files listed in your .gitignore.
  • TIPS: c/c++ are considering as one language when aggregates, and ts/js/tsx/jsx as well.

example

  • Toggle the backgournd color in the editor by clicking the status bar item, which is useful when you think this tool maybe wrong, you could look at the class of each line directly. If you have seen any thing wired, please propose an issue and let me know.
    • comments are shown in red,
    • codes are shown in green,
    • and if one line contains both code and comment, it will be shown in blue.

example

0.5.3

  1. add support for C#

0.5.2

  1. fix count incorrecly when string span multiple lines by slash(\) at the end.
  2. add new commands: summarize codes and comments of workspaces.

0.5.1

  1. Add suport for CUDA

0.5.0

  1. Add support of GDScript
  2. Add progress status bar item when counting new workspace folder
  3. Fix a bug that could stuck the extension when counting a file with a correct suffix but which is a folder, such as a folder names: example.cpp
  4. Fix a bug that failed to counting an empty Jupyter notebook
  5. Add running logs to vscode output panel for better debugging

0.4.0

  • Add support for python jupyter notebook.

0.3.0

  • Add a language icon on the status bar item.
  • Add a hover message on the status bar item.
  • Adjust the description in the status bar item.

0.2.0

  • Add support for C/C++
  • Now this tool will counting all your codes in your workspaces by lines!
  • fix several bugs that could stuck the extension

0.1.2

fix a bug that could stuck the extension when analyzing comment string in python

0.1.0

Initial release of code count tool, support

  • typescript
  • javascript
  • TSX
  • JSX
  • python

TODO

  • [ ] add a new command to generate a report of the whole project
  • [ ] add support for golang
  • [ ] add support for rust
  • [ ] maybe change the example images in readme

Enjoy!

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