This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12880|Reply: 1

[Source] Multi-line comment and uncomment shortcuts in IDEA

[Copy link]
Posted on 8/16/2018 2:04:39 PM | | |
1. Shortcut keys for adding multiple lines of comments at one time

First select the area to annotate, and then

ctrl+/       This is a multi-line code breakdown comment with a comment symbol per line

ctrl+shift+/    This is a multi-line code comment in a block, with only comment symbols at the beginning and end



2. Cancel the multi-line comment shortcut

How to add a shortcut key, cancel it in the same way,

Such asctrl+/  Add a comment, thenctrl+/Uncomment

ctrl+shift+/Add a comment, thenctrl+shift+/Uncomment




Previous:mybatis prevents SQL injection
Next:MYSQL:WARN: Establishing SSL connection without server's identity verificatio...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com