console.log() snippet for VS code
Overview
c-logs simplifies console.log() and adds extra features to make debugging in JavaScript projects easier.
Features
Need a plain console.log()
snippet "c=" (console)
output console.log()
Log copied variable
snippet "cc=" (console copied)
output console.log("variable",variable)
Log file's path
snippet "cf=" (console filepath)
output console.log("filepath")
Log copied variable with file's path
snippet "ccf=" (console copied filepath)
output console.log("filepath", variable)
Log 6-digit random numbers
snippet "cr=" (console random)
output console.log("4digitrandomnumber")
Log copied variable with 6-digit random numbers
snippet "ccr=" (console copied random)
output console.log("4digitrandomnumber",variable)
Log current time
snippet "ct=" (console time)
output console.log('h:mm am/pm')
Log copied variable with current time
snippet "cct=" (console copied time)
output console.log('hh:mm am/pm', variable)
Log current date
snippet "cd=" (console date)
output console.log('dd-month-yy')
Log copied variable with current data
snippet "ccd=" (console copied date)
output console.log('dd-month-yy',variable)
Log current data and time
snippet "cdt=" (console date time)
output console.log('dd-month-yy :: hh:mm am/pm')
Log copied variable with current data and time
snippet "ccdt=" (console copied date time)
output console.log('dd-month-yy :: hh:mm am/pm', variable)
Requirements
Works with JavaScript, Typescript, jsx, tsx
Enjoy!
| |