Skip to content

Instantly share code, notes, and snippets.

@kentcdodds
Created April 3, 2018 15:16
Show Gist options
  • Save kentcdodds/b5ad7017ae952ad214fb1bc4787fc580 to your computer and use it in GitHub Desktop.
Save kentcdodds/b5ad7017ae952ad214fb1bc4787fc580 to your computer and use it in GitHub Desktop.
A handy trick with multiline code comments I learned from Matt Zabriskie
// here's a handy trick:
/*
console.log('any code')
/**/
// It takes just one character change
// to uncomment out all the code above:
//*
console.log('any code')
/**/
// Photo by Kafai Liu on Unsplash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment