Vscode keyboard shortcuts for comments

Asked

Viewed 39,629 times

8

In Vscode I am not able to run some shortcuts. The comments shortcut, for example, does not work.

The shortcut would be Ctrl+/, but all shortcuts that need a key that has more than one letter or symbol option do not work.

For example, Ctrl+F works.

How to proceed?

My keyboard has on the backslash the letter Q along.

  • This is by keyboard thing in abnt 2 pattern, Ctrl+; should solve

  • I went through this with several commands. Sign in to your vscode: file > preferences > Keyboard Shortcuts. In this option you will list all the shortcuts of your vscode, if you want to filter, just type the shortcuts and you will see some other command using the same shortcut, just edit...inclusive, already takes the opportunity to make optimizations in your commands. After studying this configuration, today my vscode is all customized with easy shortcuts, instead of three keys, I use only one. Make vc tb your customization of commands to streamline your work. From clean terminal, open and close terminal... My r

  • Good to see this answer - thank you, Vivi. I think it helps to inform you that I also thought this shortcut was Ctrl + /, and the source is VS Code itself: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf. And I came to this PDF for a link of tricks and tips from VS Code: https://code.visualstudio.com/docs/getstarted/tips-and-tricks#vscode. Finally.

1 answer

16


By default the shortcut for comment in Vscode is the Ctrl+;. You changed the setting?

You also have the option to do the same as Visual Studio: Ctrl+K and then Ctrl+C.

  • I solved the problem, in fact the shortcut you commented works. It turns out that on the site vs-code they put a page with shortcuts that do not work on my pc. Hence the confusion, I believe it is the configuration of the characters of the keyboards there and here, but I’m not sure.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.