I’ve just started using IntelliJ IDEA for Java programming and I’m seeing tags (are they called tags?) like @param and @return. What is the significance of these tags? IntelliJ actually complains if I don’t have those tags in my code!
What are the most important ones to know and what are they used for?
I couldn’t find anything relevant in the IntelliJ documentation regarding these tags.
Yes, they are called tags. If you see those tags in the comments, they are to document your method’s parameters and return value.
They can be automatically processed to generate JavaDoc documentation. The generated documentation will be similar to the the Java API Documentation. See how to write doc comments for the JavaDoc tool.