The Better Comments extension is not highlighting comments as expected.
- Updated VS Code and Extension:
- Ensured that both VS Code and the Better Comments extension are up to date.
- Restarted VS Code:
- Restarted the application multiple times after making changes.
- Checked Output Log:
- Went to View > Output, selected Extensions, and checked for any errors or warnings related to Better Comments.
- Disabled Other Extensions:
- Disabled other extensions to check for conflicts, but the issue persisted.
- Reinstalled the Extension:
- Removed and reinstalled the Better Comments extension.
- Checked settings.json:
- Ensured the settings in settings.json are correct and relevant to Better Comments:
{
"better-comments.multilineComments": true,
"better-comments.highlightPlainText": true,
"better-comments.tags": [
{ "tag": "!", "color": "#FF2D00", "strikethrough": false, "backgroundColor": "transparent" },
{ "tag": "?", "color": "#3498DB", "strikethrough": false, "backgroundColor": "transparent" },
{ "tag": "//", "color": "#474747", "strikethrough": false, "backgroundColor": "transparent" },
{ "tag": "TODO", "color": "#FF8C00", "strikethrough": false, "backgroundColor": "transparent" },
{ "tag": "*", "color": "#98C379", "strikethrough": false, "backgroundColor": "transparent" }
]
}
- Checked Language Support:
- Verified that the file type is supported by Better Comments and not set to plain text or an unsupported language.
New contributor
Wydady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.