DEV Community

loading...
Cover image for Make your `console.life` easy !

Make your `console.life` easy !

drozerah profile image Drozerah ・1 min read

Using Better Comments and a VSCcode snippet we can achieve this :

clg

VSCode Snippet:

    "Console.log()": {
        "prefix": "clg",
        "body": [
          "console.log('$0') // !DEBUG"
        ],
        "description": "Console method log()"
    }

What we have now is a [clg + enter] autocomplete with a red colorized debug comment that highlights your debugings :)

  • easy to use and configure
  • no more time consuming looking for lost console.log in your code
  • code readability improvement

Be proud !

Discussion (2)

pic
Editor guide
Collapse
royalfig profile image
Ryan Feigenbaum

So simple, yet such a great idea!

Collapse
drozerah profile image
Drozerah Author

Indeed ! I Am also a musician, believe it, when the idea comes to my brain it took me like a groovy funky party ! Can you feel it ? ;)