{"id":16431045,"url":"https://github.com/estruyf/vscode-hide-comments","last_synced_at":"2025-03-21T04:31:55.639Z","repository":{"id":80486670,"uuid":"342716352","full_name":"estruyf/vscode-hide-comments","owner":"estruyf","description":"This extension started as a joke for people who do not like to see comments in the code. The extension will basically set all comments to transparent, they will not be removed.","archived":false,"fork":false,"pushed_at":"2024-09-25T16:03:06.000Z","size":599,"stargazers_count":37,"open_issues_count":12,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T02:51:09.413Z","etag":null,"topics":["comments","visibility"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hide-comments","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/estruyf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["estruyf"],"custom":["https://www.buymeacoffee.com/zMeFRy9"]}},"created_at":"2021-02-26T22:25:16.000Z","updated_at":"2025-01-20T19:08:08.000Z","dependencies_parsed_at":"2023-09-29T09:53:38.364Z","dependency_job_id":null,"html_url":"https://github.com/estruyf/vscode-hide-comments","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fvscode-hide-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fvscode-hide-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fvscode-hide-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fvscode-hide-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estruyf","download_url":"https://codeload.github.com/estruyf/vscode-hide-comments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244110101,"owners_count":20399562,"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","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":["comments","visibility"],"created_at":"2024-10-11T08:29:02.381Z","updated_at":"2025-03-21T04:31:55.346Z","avatar_url":"https://github.com/estruyf.png","language":"TypeScript","funding_links":["https://github.com/sponsors/estruyf","https://www.buymeacoffee.com/zMeFRy9"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hide-comments\"\u003e\n    \u003cimg alt=\"Hide Comments\" src=\"./assets/hide-comments.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eHide Comments - VSCode Extension\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hide-comments\" title=\"Check it out on the Visual Studio Marketplace\"\u003e\n    \u003cimg src=\"https://vsmarketplacebadges.dev/version/eliostruyf.vscode-hide-comments.svg\" alt=\"Visual Studio Marketplace\" style=\"display: inline-block\" /\u003e\n  \u003c/a\u003e\n\n  \u003cimg src=\"https://vsmarketplacebadges.dev/installs/eliostruyf.vscode-hide-comments.svg\" alt=\"Number of installs\"  style=\"display: inline-block;margin-left:10px\" /\u003e\n  \n  \u003cimg src=\"https://vsmarketplacebadges.dev/rating/eliostruyf.vscode-hide-comments.svg\" alt=\"Ratings\" style=\"display: inline-block;margin-left:10px\" /\u003e\n\n  \u003ca href=\"https://www.buymeacoffee.com/zMeFRy9\" title=\"Buy me a coffee\" style=\"margin-left:10px\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Buy%20me%20a%20coffee-€%203-blue?logo=buy-me-a-coffee\u0026style=flat\" alt=\"Buy me a coffee\" style=\"display: inline-block\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis extension started as a joke for people who do not like to see comments in the code. The extension will set all comments to **transparent**. The extension will never remove the comments from the file.\n\n\u003e **Important**: Although it might have been started as a joke. There might be people out there that would actually like to hide the comments in their projects. That is why I will keep this project alive.\n\n## Usage\n\nWhen the extension is installed. You can use the `Hide Comments` commands to show or hide the comments.\n\nIf you want, you can also let the extension ask you each time when you start a new instance if you want to hide the comments. You can do this by enabling the `hideComments.defaultEnabled` setting. When this is set to `true`, you will get the following notification when you start a new instance:\n\n![Do you want to hide the comments of this project?](./assets/hide-comments-dialog.png)\n\nWhen you choose **Yes** it will at the settings to your user settings for this project. If you decide **No**, nothing will happen at all.\n\n## Menu editor title actions\n\nOn the editor title, a toggle action is available to show/hide the comments quickly.\n\n![Title bar action toggle](./assets/toggle-action.png)\n\n\u003e Note: In case you are using the `hideComments.regex` setting to hide additional lines with custom regex, you will have a second toggle action available.\n\n## Settings\n\n- `hideComments.backup`: Used to backup the previous comments value (if set). Default: `null`.\n- `hideComments.color`: Defines the color for hiding the comments. Default: `#00000000`.\n- `hideComments.defaultEnabled`: Define if you want to enable or disable the extension on startup of Visual Studio Code. Default: `false`.\n- `hideComments.cleanStart`: Define if you want to start each instance by showing the comments in your files. Default: `true`.\n- `hideComments.foldOnHide`: Define if you want to fold the comment blocks when hiding comments. Default: `true`.\n- `hideComments.regex`: Specify the regular expression to use to hide additional lines. Default: `null`.\n\n## Commands\n\nThe extension currently has the following commands:\n\n1. `Hide Comments: Toggle the show/hide of all comments`\n2. `Hide Comments: Hide all comments`\n3. `Hide Comments: Show all comments`\n4. `Hide Comments: Show lines by regex`: this command is only available when the `hideComments.regex` setting is set.\n5. `Hide Comments: hide lines by regex`: this command is only available when the `hideComments.regex` setting is set.\n\n### Keybindings\n\nThe extension does not have any default keybindings. You can add your own keybindings to the commands from within Visual Studio Code it UI. Steps to do this:\n\n1. Open the command palette: `Ctrl+Shift+P` or `Cmd+Shift+P`;\n2. Type the command you want to add a keybinding. Example: `Hide Comments: Toggle the show/hide of all comments`;\n3. Click on the gear icon next to the command in the command palette. This opens the keyboard shortcuts editor;\n4. Add your keybinding and you are all set.\n\n## Hide additional lines by regex\n\nIn case you want to hide additional lines with a custom regex, you can use the `hideComments.regex` setting. Here is an example:\n\n```json\n{\n  \"hideComments.regex\": [\n    {\n      \"regex\": \"console\\\\.log\\\\(([^)]+)\\\\).*\",\n      \"flags\": \"igm\"\n    }\n  ]\n}\n```\n\n## Removing the extension\n\nWhen you want to remove the extension, but still have the comments hidden. It is best to first run the `Hide Comments: Show all comments` command. This will make sure that all settings will be reset.\n\nIf you did already uninstall the extension, but still your comments are hidden. Here is what you can do:\n\n- Open your workspace settings via: `Preferences: Open Workspace Settings (JSON)`\n- Remove the following code from the JSON file:\n\n```\n\"editor.tokenColorCustomizations\": {\n  ...\n}\n```\n\n## Feedback / issues / ideas\n\nPlease submit them via creating an issue in the project repository: [issue list](https://github.com/estruyf/vscode-hide-comments/issues).\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n      \u003cimg src=\"https://api.visitorbadge.io/api/VisitorHit?user=estruyf\u0026repo=vscode-hide-comments\u0026countColor=%23F141A8\u0026labelColor=%230E131F\" /\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festruyf%2Fvscode-hide-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festruyf%2Fvscode-hide-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festruyf%2Fvscode-hide-comments/lists"}