Couldn't use vs code ''better comments extension'' for Python
Question:
Answers:
If you look at the Better Comments documentation, you will need to configure the colors yourself:
This extension can be configured in User Settings or Workspace settings.
The comment highlighting doesn’t automatically highlight certain comments, but allows you to do so.
This extension can be configured in User Settings or Workspace settings.
"better-comments.multilineComments": true
This setting will control whether multiline comments are styled using the annotation tags. When false, multiline comments will be presented without decoration.
"better-comments.highlightPlainText": false
This setting will control whether comments in a plain text file are styled using the annotation tags. When true, the tags (defaults: ! * ? //) will be detected if they’re the first character on a line.
Ref: Better Comments Doc
I was struggling to figure it out but finally got it. My json setting is below. Basically 1) Avoid the first line, 2) Add "#" followed by the tag as per your settings.json file and then anything. This worked for me.
"better-comments.multilineComments": true,
"better-comments.highlightPlainText": false,
"better-comments.tags": [
{
"tag": "!!",
"color": "#F6FF33",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "TODO",
"color": "#FF8C00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "//",
"color": "#68FF33",
"strikethrough": false,
"backgroundColor": "transparent"
}
{
"tag": "**",
"color": "#FF33EC",
"strikethrough": false,
"backgroundColor": "transparent"
}
]
If you look at the Better Comments documentation, you will need to configure the colors yourself:
This extension can be configured in User Settings or Workspace settings.
The comment highlighting doesn’t automatically highlight certain comments, but allows you to do so.
This extension can be configured in User Settings or Workspace settings.
"better-comments.multilineComments": true
This setting will control whether multiline comments are styled using the annotation tags. When false, multiline comments will be presented without decoration.
"better-comments.highlightPlainText": false
This setting will control whether comments in a plain text file are styled using the annotation tags. When true, the tags (defaults: ! * ? //) will be detected if they’re the first character on a line.
Ref: Better Comments Doc
I was struggling to figure it out but finally got it. My json setting is below. Basically 1) Avoid the first line, 2) Add "#" followed by the tag as per your settings.json file and then anything. This worked for me.
"better-comments.multilineComments": true,
"better-comments.highlightPlainText": false,
"better-comments.tags": [
{
"tag": "!!",
"color": "#F6FF33",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "TODO",
"color": "#FF8C00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "//",
"color": "#68FF33",
"strikethrough": false,
"backgroundColor": "transparent"
}
{
"tag": "**",
"color": "#FF33EC",
"strikethrough": false,
"backgroundColor": "transparent"
}
]