DEV Community

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

Posted on

Make your `console.life` easy !

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 !

Top comments (2)

Collapse
 
royalfig profile image
Ryan Feigenbaum

So simple, yet such a great idea!

Collapse
 
drozerah profile image
Drozerah

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 ? ;)