{"id":32125258,"url":"https://github.com/uctakeoff/vscode-counter","last_synced_at":"2025-10-20T22:39:15.784Z","repository":{"id":36269293,"uuid":"155081157","full_name":"uctakeoff/vscode-counter","owner":"uctakeoff","description":"VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.","archived":false,"fork":false,"pushed_at":"2025-09-10T01:59:43.000Z","size":2806,"stargazers_count":172,"open_issues_count":24,"forks_count":23,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-18T14:41:28.420Z","etag":null,"topics":["typescript","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uctakeoff.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-28T14:40:36.000Z","updated_at":"2025-08-23T06:55:17.000Z","dependencies_parsed_at":"2023-01-17T00:00:45.304Z","dependency_job_id":"11de46bc-0115-46ac-b6f0-c84c32382b82","html_url":"https://github.com/uctakeoff/vscode-counter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/uctakeoff/vscode-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uctakeoff%2Fvscode-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uctakeoff%2Fvscode-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uctakeoff%2Fvscode-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uctakeoff%2Fvscode-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uctakeoff","download_url":"https://codeload.github.com/uctakeoff/vscode-counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uctakeoff%2Fvscode-counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280173297,"owners_count":26284895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["typescript","vscode","vscode-extension"],"created_at":"2025-10-20T22:39:11.152Z","updated_at":"2025-10-20T22:39:15.776Z","avatar_url":"https://github.com/uctakeoff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VScode Counter\n\nVS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.\n\n* [github](https://github.com/uctakeoff/vscode-counter)\n* [Marketplace](https://marketplace.visualstudio.com/items?itemName=uctakeoff.vscode-counter)\n\nThis extension uses other language extensions to determine the line of code.Therefore, you may need to install the language extension to support a new language.\n\nConversely, as the number of language extensions increases, the range of support for this feature also increases.\n\n### Used in the wonderful extension CodeViz Stat!\n\n[CodeViz Stat](https://marketplace.visualstudio.com/items?itemName=vizzuhq.code-viz-stat) allows you to see the results of your statistics in beautiful graphs.\n\n## Features\n\n- Count the code lines of source code in workspace or directory.\n- Count the code lines of the current file in real time.\n\n\n## Usage\n\n### Count in workspace\n\n* Open the command palette and select  `VSCodeCounter: Count lines in workspace`.\n\n    ![](images/count_workspace.gif)\n\n\n### Count in any directory\n\n* Open Explorer and right click on the folder.\n* Select `Count lines in directory`.\n\n    ![](images/from_menu.gif)\n\n\n### Real-time counter\n\n* Open the command palette and select  `VSCodeCounter: Toggle Real-time Counter Visibility`.\n\n    ![](images/realtime_counter.png)\n\n* Count the range of the selected text\n\n    ![](images/realtime_counter-select.gif)\n\n### Check available languages\n\n* Open the command palette and select  `VSCodeCounter: Check available languages`.\n    ![](images/avail_langs.png)\n\n    * Available languages can be increased by adding language extensions.\n\n### Save language configurations\n\n**VSCode Counter** is able to aggregate in unknown languages by referring to the information in the installed language extensions. However, I found out that **this information is not available in Remote Development**.\n\nTherefore, VSCode Counter's ability of **collecting VSCode language extensions** is now called as an independent function. The idea is to collect the information once in the local environment and store it so that it can be used remotely.\n\n* First, launch VSCode on your local.\n* Then, open the command palette and select  `VSCodeCounter: Save the collected language configurations`.\n* Then *settings.json* will store the configuration information collected from the current language extensions .\n    ![](images/save_lang.png)\n* Connect to the remote and use the VSCodecounter as usual.\n\n\nYou can also change the location where your configurations are stored.\nHowever, you must carry the stored information to the remote environment by yourself.\n\n\n## Extension Settings\n\n* `VSCodeCounter.useGitignore`: Whether to use '.gitignore' files for excluding files.\n* `VSCodeCounter.useFilesExclude`: Whether to use setting 'files.exclude' for excluding files.\n* `VSCodeCounter.maxFindFiles`: Maximum number of searchable files.\n* `VSCodeCounter.maxOpenFiles`: Maximum number of files that VSCodeCounter can read simultaneously.\n* `VSCodeCounter.printNumberWithCommas`: Whether to print a number with commas as thousands separators.(except for CSV)\n* `VSCodeCounter.ignoreUnsupportedFile`: Ignore unsupported files.\n* `VSCodeCounter.endOfLine`: A new line character to be used in the output file.\n* `VSCodeCounter.include`: Configure glob patterns for including files and folders.\n* `VSCodeCounter.exclude`: Configure glob patterns for excluding files and folders.\n* `VSCodeCounter.outputDirectory`: Directory path for outputting results.\n* `VSCodeCounter.outputAsText`: Whether to output the result as a text file.\n* `VSCodeCounter.outputAsCSV`: Whether to output the result as a CSV file.\n* `VSCodeCounter.outputAsMarkdown`: Whether to output the result as a Markdown file.\n* `VSCodeCounter.outputPreviewType`: Type of output file to preview after counting. Choose from `text`, `csv`, `markdown`, `diff-text`, `diff-csv`, `diff-markdown` or `none`.\n* `VSCodeCounter.saveLocation`: Specify where to store the collected language configurations.\n* `VSCodeCounter.history`: Controls the number of recent result to keep in history.\n\n\n**Enjoy!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuctakeoff%2Fvscode-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuctakeoff%2Fvscode-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuctakeoff%2Fvscode-counter/lists"}