
Commenting out code is quick and easy with a keyboard shortcut: Win + / on Windows or Command + / on Mac.
You can place your cursor anywhere on the line that you want to comment out, or you can select multiple lines to comment out.
This works across multiple languages in multiple apps. I’ve tested in Azure Data Studio and VS Code with PowerShell, SQL, and Terraform. And that’s not all it works in. Try it out and save yourself some time when needed to comment.
Troubleshooting
- If Win + / doesn’t work, check your editor’s keybindings. Some editors might use Ctrl + / instead.
- If using a remote desktop or virtual machine, the shortcut might not pass through correctly.
The post Quickly Comment Out Code Using Win + / or Cmd + / appeared first on sqlkitty.