Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5481

Getting rid of old Rearranger Comments

$
0
0

The new Rearranger does not insert section comments and it does not do

much rearranging the way the old Rearranger did.  The legacy comments

suffer from entropy, and soon become misleading.

 

If you want to strip them out,  here is a Funduc Search/Replace script

to do it.  It should not be hard to modify the script for other

replacers. Funduc has it own quirky prefix-style Regex syntax.

 

Script for Search and Replace

Remove all IntelliJ inserted comments for regeneration without dups.

 

Search /x /r2

*#//\- CANONICAL METHODS\- \r\n

Replace

 

Search /x /r2

*#//\- CONSTANTS\- \r\n

Replace

 

Search /x /r2

*#//\- CONSTRUCTORS\- \r\n

Replace

 

Search /x /r2

*#//\- FIELDS\- \r\n

Replace

 

Search /x /r2

*#//\- GETTER / SETTER METHODS\- \r\n

Replace

 

Search /x /r2

*#//\- INNER CLASSES\- \r\n

Replace

 

Search /x /r2

*#//\- INTERFACE METHODS\- \r\n

Replace

 

Search /x /r2

*#//\- main() method\- \r\n

Replace

 

Search /x /r2

*#//\- OTHER METHODS\- \r\n

Replace

 

Search /x /r2

*#//\- PUBLIC INSTANCE  METHODS\- \r\n

Replace

 

Search /x /r2

*#//\- PUBLIC STATIC METHODS\- \r\n

Replace

 

Search /x /r2

*#//\- STATIC METHODS\- \r\n

Replace

 

Path

E:\intellij\*.java

End of Search and Replace Script

 

 

--

Roedy Green Canadian Mind Products http://mindprod.com

Computers are like Old Testament gods; lots of rules and no mercy.

~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

 


Viewing all articles
Browse latest Browse all 5481

Trending Articles