Reputation: 762
I have started to use JAutodoc in Eclipse. I'm able to create/update comments. But, is there any way to remove the created comments, instead of deleting them manually?
Upvotes: 1
Views: 745
Reputation: 94
You can at least remove private method javadoc by modifying «Juan Carlos Contreras Vázquez» regex and by going into «In eclipse open Search -> File» and search with the following:
/\*{2}[a-zA-Z0-9\.\@\(\)\*\s/]*\*/\R private
But again it removes every private methods javadoc.
Upvotes: 0
Reputation: 11
You can use this regular expression to find/replace ALL the comments on your project:
/\*{1,2}[a-zA-Z0-9\.\@\(\)\*\s/]*/
/\*{1,2}[a-zA-Z0-9\.\@\(\)\*\s/]*/
*.java
CAREFULLY! This operation, will remove ALL the comments on your project! Not only from jAutodoc.
Upvotes: 1
Reputation: 91
I was also looking for the same, but did not find any option from JAutodoc. Finally got the following work around in few clicks -
1) Popup the context menu on the file by right clicking
2) Then choose either one of the following from the context menu:
a) 'Local History' => 'Replace with Previous'
b) 'Replace With' => 'Previous from Local History'
c) 'Compare With' => 'Local History' => choose version by date => 'Copy All Non-Conflicting Changes from Right to Left'
Here is a screen shot
Upvotes: 1