Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Settings for VS Code better comments to beautify your comments.

Add below settings to your vscode settings.json file and don't forget to install the vs code plugin better comments

Better Comments: logic24by7.com

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"
    }
  ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.