Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Any hints on reformatting comments

$
0
0

We've got a local Checkstyle rule that states no tabs in java files.

 

However whenever I reformat or use 'replace indents' 'tabs with spaces' action in IntelliJ it ignores the tabs in comments. Is there a way to perform kind of replacement for all the editors content? Trick is to keep the indents in the comments. Otherwise a regex search & replace would work.

 

Many of these 'invalid' comments are auto-generated eclipse template ones of the kind: /* (non-Javadoc) @see<interface method>.... */ these I'd like to delete as they add nothing. But I'm also struggling with multiline replacement. Seems the multiline mode for search & replace doesn't have a regex option? Anyone want to share some editor trick to delete these? A macro would almost do it, but I'd need a 'Select Comment|JavaDoc' action of some kind.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>