NOTE: Node.js and PowerShell is required to use this script.
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
- Press
Ctrl + Shift + P
- Type
Count Code Lines
- Press
Enter
If you have the extenion installed, 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.
This project is licensed under the MIT License. See the LICENSE file for more information.