Topic 2C: VS Code: Useful Coding Features & Keystrokes
Essential VS Code Shortcuts
Toggle Comment
Cmd-/ (Mac) or Ctrl-/ (Windows) — language-aware comment for current line.
Move Lines Up/Down
Option-Up/Down (Mac) or Alt-Up/Down (Windows).
Copy Line
Option-Shift-Down (Mac) or Alt-Shift-Down (Windows) — duplicates the current line.
Delete Line
Cmd-Shift-K (Mac) or Ctrl-Shift-K (Windows).
Build Web Development Skills at Noble Desktop
Noble Desktop's Full-Stack Web Development Certificate teaches the modern web stack — VS Code is the editor used throughout.
Discover helpful tips and tricks for utilizing Visual Studio Code more efficiently, including keyboard shortcuts, adding and removing comments, moving lines, and more.