Method 1:
One-line comments: Shift + # (enter at the top of the code and comment unselected code)
Multi-line comment: Enter Shift +# at the beginning of each line as if it were a single line
Method 2:
Single-line and multi-line: Ctr+/ (if the code you want to comment is selected)
Method 3:
Type “” or “”” “”” “”, and insert the code to be commented in the middle
One-line comments: Shift + # (enter at the top of the code and comment unselected code)
Multi-line comment: Enter Shift +# at the beginning of each line as if it were a single line
Method 2:
Single-line and multi-line: Ctr+/ (if the code you want to comment is selected)
Method 3:
Type “” or “”” “”” “”, and insert the code to be commented in the middle
Read More:
- Use Python to insert the specified content in the specified line of the specified file
- Several ways for Ubuntu to open command line terminal window
- The language of C__ FILE__ 、__ LINE__ And line
- Java 8 Stream – Read a file line by line
- In Python, print() prints to remove line breaks
- Command line is too long. Shorten command line for QuestionnaireApplication or also for Spring Boot
- The python version output from the command line is inconsistent with the python version in the current CONDA environment
- Let’s get started with latex 05, line feed, paragraph feed, page feed, first line indent, etc
- ESLint: Expected space or tab after ‘//‘ in comment.(spaced-comment)
- How to batch comment and cancel Python code
- Vue More than 1 blank line not allowed
- How to empty a whole line in latex (simple and effective)
- How does a Mac terminal exit the python command line
- Three solutions to command line flashback in VS
- Solve the problem of red wavy line in pychar when importing module written by oneself
- Error running ‘application’: command line is too long. Short command line for application
- Error in idea unit test command line is too long
- Solution of command line window flashback when visual studio runs C + + program
- Sudo: parse error in / etc / sudoers near line 24