Thursday, October 27, 2022
HomeWordPress DevelopmentHow a VS Code Extension "Todo Tree" could make your coding simpler...

How a VS Code Extension “Todo Tree” could make your coding simpler | Todo Tree Configuration | Highlighting Feedback


The Todo Tree extension shortly searches your workspace for remark tags like TODO and FIXME, and shows them in a tree view within the exercise bar. The view could be dragged out of the exercise bar into the explorer pane (or anyplace else you would like it to be).


  1. So let’s first obtain and allow it from the extensions.

Todo Tree dev.to/koustav


It is now downloaded and has default configurations. However let’s make customized ruleset.

  1. Go to the Handle Choice in VS Code

Manage VS Code


  1. Now Click on on settings

Settings VS Code dev.to/koustav

The settings file opens.


  1. Now now we have to open the settings.json File. Click on on the button on the high proper nook.

settings.json devto-koustav


  1. Now you may paste the beneath code there and make your customized adjustments in it!
{
  "todo-tree.highlights.defaultHighlight": {
    "icon": "alert",
    "kind": "text-and-comment",
    "foreground": "black",
    "background": "white",
    "opacity": 50,
    "iconColour": "blue",
    "gutterIcon": true
  },
  "todo-tree.highlights.customHighlight": {
    "TODO": {
      "icon": "test",
      "foreground": "black",
      "background": "yellow",
      "iconColour": "yellow"
    },
    "NOTE": {
      "icon": "notice",
      "foreground": "white",
      "background": "cornflowerblue",
      "iconColour": "cornflowerblue"
    },
    "USEFUL": {
      "icon": "notice",
      "foreground": "black",
      "background": "mediumaquamarine",
      "iconColour": "mediumaquamarine"
    },
    "COMMENT": {
      "icon": "notice",
      "foreground": "white",
      "background": "grey",
      "iconColour": "grey"
    },
    "LEARN": {
      "icon": "notice",
      "foreground": "white",
      "background": "hotpink",
      "iconColour": "hotpink"
    },
    "FIXME": {
      "foreground": "crimson",
      "background": "burlywood",
      "iconColour": "burlywood"
    },
    "BUG": {
      "foreground": "white",
      "background": "crimson",
      "iconColour": "crimson"
    },
    "SEE NOTES": {
      "icon": "test",
      "foreground": "white",
      "background": "teal",
      "iconColour": "teal"
    },
    "POST": {
      "icon": "test",
      "foreground": "white",
      "background": "inexperienced",
      "iconColour": "inexperienced"
    },
    "[ ]": {
      "icon": "test",
      "foreground": "black",
      "background": "white",
      "iconColour": "yellow"
    },
    "[x]": {
      "icon": "test",
      "foreground": "white",
      "background": "inexperienced",
      "iconColour": "inexperienced"
    }
  },
  "todo-tree.common.tags": [
    "BUG",
    "SEE NOTES",
    "HACK",
    "FIXME",
    "TODO",
    "NOTE",
    "POST",
    "USEFUL",
    "LEARN",
    "COMMENT",
    "[ ]",
    "[x]"
  ],
  "todo-tree.regex.regex": "(//|#|<!--|;|/*|^|^s*(-|d+.))s*($TAGS).*(ns*//s{2,}.*)*"
}
Enter fullscreen mode

Exit fullscreen mode

Right here is the ultimate result-

Todo Tree Configuration dev.to/koustav


Each Remark comes as a object on this json file. The construction of the thing is-

Todo Tree dev-to-koustav


  1. You’ll be able to add extra objects based mostly on this construction and embrace the thing identify in-

Todo Tree dev-to-koustav

  • Foreground and background-color could be specified utilizing HTML/CSS color names (e.g. "Salmon"), RGB hex values (e.g. "#80FF00"), RGB CSS model values (e.g. "rgb(255,128,0)")
  • fontWeight, fontStyle, textDecoration – can be utilized to model the spotlight with commonplace CSS values.

Share it💚 with somebody who might profit from this
❤️ Joyful Coding!
Observe for extra!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments