uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
151 stars 20 forks source link

Counting .h as C++ code #55

Closed gabrielbergoc closed 2 years ago

gabrielbergoc commented 2 years ago

I worked on a project for a college assignment, it's written entirely in C (and a single python script), and VS Code Counter is considering my C header files (.h) as C++ code: image

(I checked the headers' number of lines, they match the C++ column)

uctakeoff commented 2 years ago

@gabrielbergoc From version 3.0 onwards, file associations are taken into account.

https://code.visualstudio.com/docs/languages/overview#_changing-the-language-for-the-selected-file