The method of annotating code in vscode
This article mainly introduces the method of vscode annotation code, which has a certain reference value, friends who need can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
Take three lines of code from Django as an example:
One-line comments: (comment the first line of code)
1. If the cursor is placed before the initials, shift+#, cancels the same.
2. Place the cursor anywhere on the first line (either at the end of the sentence), and ctrl+/, cancels the same.
3. The cursor selects a line of code that you want to comment on, alt+shift+A, and cancel the same.
4. The cursor selects a line of code that you want to comment:
(1) ctrl+k
(2) ctrl+c.
The cancellation is:
(1) ctrl+k
(2) ctrl+u.
2. Multiline comments: (comment multiline code)
1. The cursor selects all the code you want to comment on, and ctrl+/, cancels the same.
2. The cursor selects all the code you want to comment on, alt+shift+a, and cancels the same.
3. The cursor selects all the code you want to comment on:
(1) ctrl+k
(2) ctrl+c.
The cancellation is:
(1) ctrl+k
(2) ctrl+u.
Thank you for reading this article carefully. I hope it is helpful for everyone to share the method of vscode comment code. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!