K
K
kr_ilya2021-10-17 00:57:09
visual studio
kr_ilya, 2021-10-17 00:57:09

How to assign the same hotkeys to add/remove comment in Visual Studio 2019?

How to assign hotkeys so that you can comment and uncomment the selected code fragment with one key combination? Ie if the code is not commented out -> comment out, if it is commented out -> uncomment.

VS Code has this combination. Is it available in VS 2019?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2021-10-17
@BasiC2k

Highlight a piece of code.
Ctrl + K, C is to comment out
Ctrl + K, U is to uncomment.
The keys are pressed sequentially while holding down Ctrl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question