Add below settings to your vscode settings.json file and don't forget to install the vs code plugin better comments
Below mentioned settings will help you get the comments as shown in the screenshot above.
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "//",
"color": "#F0F2F5",
"strikethrough": true,
"backgroundColor": "transparent"
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "todo:",
"color": "#000000",
"strikethrough": false,
"backgroundColor": "#ffff00"
},
{
"tag": "note:",
"color": "#000000",
"strikethrough": false,
"backgroundColor": "#DF38FF"
},
{
"tag": "hack:",
"color": "#000000",
"strikethrough": false,
"backgroundColor": "#FF8C00"
},
{
"tag": "fix:",
"color": "#000000",
"strikethrough": false,
"backgroundColor": "#FF2D00"
},
{
"tag": "optimize:",
"color": "#000000",
"strikethrough": false,
"backgroundColor": "#98C379"
},
{
"tag": "@critical",
"color": "#FF2D00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "@high",
"color": "#FF8C00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "@low",
"color": "#98C379",
"strikethrough": false,
"backgroundColor": "transparent"
}
]