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

Support storing collected language elsewhere #78

Closed RichardLuo0 closed 1 year ago

RichardLuo0 commented 1 year ago

The settings.json becomes extremely long after running VSCodeCounter: Save the collected language configurations. Could you support storing it in for example ~/.vscode-counter-language.json? Or allow us to specify the location?

uctakeoff commented 1 year ago

By setting VSCodeCounter.saveLocation to "output directory", the destination file can be .VSCodeCounter/languages.json.

RichardLuo0 commented 1 year ago

I see. Is it possible to store it in a generic place other than global settings? Because it seems like it can be shared across multiple projects. It's too much trouble to collect configurations for every project.

RichardLuo0 commented 1 year ago

I understand that I can change the output directory. Just I usually store the output per project. And I am using WSL which makes collecting language mandatory, so I hope there's a setting to store the file in a generic place.

uctakeoff commented 1 year ago

The setting VSCodeCounter.languageConfUri was added in version 3.1.0. You can specify any path here. However, it will not be effective unless you specify "use languageConfUri" in VSCodeCounter.saveLocation.

RichardLuo0 commented 1 year ago

Thank you, I will close the issue