IntelliJ How does the idea Comment line automatically indent?

Source: Internet
Author: User

The shortcut keys we refer to for code comments are

ctrl+/

But after the comment "//" automatically placed at the beginning of the line, not indented, like this

This looks very unattractive, how to let "//" appear at the beginning of the sentence rather than the start of the line?

Solve:

Enter Java, code Style, Settings, select "Code Generation" tab on the right, and then find the Comment code block,
Line comment At first column
Block comment at first column
Two front check boxes are removed.
check box do not tick. effect-------------------Add a Find shortcut keyCtrl + f is found in the currently open filesuch as a JSP fileDouble-click to select picfileupload, press Ctrl+f to find in the current JSP file. Ctrl+shift+f represents full-text search, which is the search for the entire projectDouble-click to select picfileupload, press ctrl+shift+f, getNotice , I changed this shortcut to Shift+f.

IntelliJ How does the idea Comment line automatically indent?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.