DEV Community

Sean Collins
Sean Collins

Posted on

vscode shortcuts

Y'all may already know these. I'm new to vscode, and have found these shortcuts helpful:

  • In a new HTML file, type ! or html, and choose from one of the options Emmet produces, to get a basic HTML template.

  • In HTML/CSS files, use CTRL/COMMAND + K, CTRL + C, to add a comment block. Sadly, it doesn't seem to work in a JavaScript (.js) context.

  • Highlight one or more lines of code and hit CTRL/COMMAND + / to comment/uncomment the block. Very handy!!

Top comments (0)