Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove javadoc with IntelliJ IDEA

As it is mentioned in Annotation to disable JavaDocs I was not able to disable generation of Javadocs by JAXB when generating Java classes from XSD.

I clearly do not need documentation for hundreds of getters/setters. Is there a way to automate deletion of javadocs instead of manually selecting and deleting them?

like image 606
Oleh Novikov Avatar asked Oct 15 '15 14:10

Oleh Novikov


People also ask

Where is Javadoc in IntelliJ?

From the main menu, select Tools | Generate JavaDoc.

How do you end a Javadoc comment?

Javadoc scans your source files looking for documentation comments, also known as “Javadoc comments”. They begin with /** (two stars) and end with */ (one star). Anything in between is considered part of the documentation. The class comment explains the purpose of the class.

How do I add Javadoc to a method in IntelliJ?

put the cursor on the method name you want to add javadoc ,and then press alt + enter, there will be an add javadoc option in the popup. If the method already has a javadoc,then there will be no add javadoc option.

Is Javadoc included in JDK?

Fortunately, all modern versions of the JDK provide the Javadoc tool – for generating API documentation from comments present in the source code.


1 Answers

The solution that works so far is to use replace functionality with regex search enabled and to use the following regex for selection \/\*\s*[\s\S]*?\*\/$, then replace found javadoc entries with an empty string.

like image 82
Oleh Novikov Avatar answered Nov 14 '22 23:11

Oleh Novikov