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

Count Code Lines

miskamero

|
1,700 installs
| (0) | Free
Count Code Lines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Count Code Lines

GitHub license

NOTE: Node.js and PowerShell is required to use this script.

Table of Contents

  • Description
  • Usage
    • VSCode extension
    • Keyboard shortcut
  • License

Description

The "countlines" - extension for VSCode counts the lines of code in the current file and displays the result in a terminal window.

Currently supported languages are:

  • Python
  • JavaScript
  • JavaScript (React)
  • TypeScript
  • TypeScript (React)
  • CSS
  • SCSS
  • HTML
  • C#
  • C
  • C++
  • C Header
  • PHP
  • Java
  • Go
  • Ruby
  • Rust
  • Swift
  • Kotlin
  • Lua
  • Shell Script
  • Batch Script
  • PowerShell

Usage

VSCode extension

  1. Press Ctrl + Shift + P
  2. Type Count Code Lines
  3. Press Enter

Keyboard shortcut

Alternatively, you can press Ctrl + Alt + Z to count the lines of code in the current file. The default keyboard shortcut can be changed in the VSCode settings.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

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