The difficulty

primary

Learning time

Ten minutes

Suits the crowd

Zero basis

Development of language

Java

The development environment

  • JDK v11
  • IntelliJ IDEA v2018.3

1. Single-line comment shortcut keys

Windows/Linux: Ctrl + /

Mac: command + /

When there is no content:

When there is content:

2. Multi-line comment shortcut keys

Windows/Linux: Ctrl + Shift + /

Mac: Command + option + /

When there is no content:

When there is content:

3. Shortcut keys for document comments

Sorry, there are no document comment shortcuts in IntelliJ IDEA, but they can be replaced with the following:

Type /** and press Enter.

At this point, IntelliJ IDEA annotation shortcut key related content to explain the end, please continue to pay attention to more content.

Answering questions

If you have questions or want to learn more about cutting-edge technology, please leave them in the comments below, and I’ll answer them for you.

The previous chapter

Full Stack 2019 Java Chapter 6: Annotations

The next chapter

“Full Stack 2019” Java Chapter 8: IntelliJ IDEA sets comments not to appear at the beginning of the line

A study group

Join a synchronous learning group for mutual communication and progress.

  • Method 1: Follow the headline number gorhaf, private message “Java study Group”.
  • Method 2: follow the public account gorhaf, reply “Java learning group”.

Full stack engineer learning program

Follow us and join the “Full stack Engineer Learning Program”.

Copyright statement

Original is not easy, shall not be reproduced without permission!