I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code. Is it possible to comment and uncomment multiple lines in Visual Studio Code using some shortcut? If yes, ...
Visual Studio 2019 now natively supports this keyboard shortcut -- Toggle Block Comment/Uncomment is now available through the keyboard shortcut (Ctrl+Shift+/) or through Edit > Advanced > Toggle Block Comment. This command will add or remove block comments depending on what you have selected.
Instead of indivually typing out a hash tag in front of each line, is there a way to select a block of code and comment/uncomment everything by only pressing a couple shortcut keys?
When you install the "Cursor" AI code editor / IDE on Windows, it takes over the code command which many developers often use in the terminal to quickly open VSCode. For example, the issue
The underlying problem is Ctrl + Alt + Left and Right are used by window managers to switch workspace and/or OEM utilities to change the screen orientation. You can change the assignments using File / Settings / Keymap then Main Menu / Navigate find Back and Forward and right click to Add Keyboard Shortcut to set an alternative key chord. Alt Graph + Left and Alt Graph + Right works well for ...
1 You can set a bind to the Edit.ExpandSelection command: In the options. Click the shortcut until it selects the whole line. The screenshot above is from the Edit > Advanced menu in Visual Studio 2022. I set this Alt+E, E shortcut myself and I don't remember if it's originally set to something or not.
I want to indent a specific section of code in Visual Studio Code. I read How do you format code in Visual Studio Code? that gives shortcuts to indent the whole code, but it doesn't work when sele...