 <h3>Solution:</h3> <blockquote> <p>What you are looking for is called <code>Structural Search/Replace</code>.</p> <p>It is not very well documented but it is <strong>Extremely Powerful</strong> once you grok it completely. </p> <p>There are a few examples in the <code>Existing Templates</code> that you can probably modify and learn from, the following will do what you are asking for now.</p> </blockquote> <h3>Here is how:</h3> <p>Go to the Menu: <code>Edit -&gt; Find -&gt; Replace Structurally</code> and use the following <code>Search Template</code>.</p> <pre><code>System.out.println($EXPRESSION$); </code></pre> <p>Check <code>Case Sensitive</code> and make <code>File Type</code> = <code>Java Source</code></p> <p>Set the <code>Scope</code> of the search to <code>Project Files</code> for everything.</p> <p>If you want to just remove it all you can just make sure the <code>Replace Template</code> field is blank.</p> <p>You could comment them all out with a <code>Replace Template</code> of <code>//System.out.println($EXPRESSION$);</code> or <code>/* System.out.println($EXPRESSION$); */</code></p> <h3>Better Solution:</h3> <blockquote> <p>Use the <code>Structural Search/Replace</code> to add <code>private static final Logger L = LoggingFactory($Class$.class);</code> to all the classes with the <code>System.out.println()</code> statements.</p> </blockquote> <p>Then replace all the <code>System.out.println($EXPRESSION$);</code> with <code>L.info($EXPRESSION$);</code></p> <p>You can even do things sophisticated things like the following:</p> <p><em>This is just an example idea, the body of the <code>catch</code> needs to only have the the <code>System.out.println($EXPRESSION$)</code> a more sophisticated block to grab other expressions and keep them would be an exercise for the reader.</em></p> <pre><code>try { $TryStatement$; } catch($ExceptionType$ $ExceptionRef$) { System.out.println($EXPRESSION$); } </code></pre> <p>with</p> <pre><code>try { $TryStatement$; } catch($ExceptionType$ $ExceptionRef$) { L.error($EXPRESSION$); } </code></pre> <h3>Best Solution:</h3> <blockquote> <p>Always use a <code>Logger</code> instead of <code>System.out.println()</code> in <strong>everything</strong>. Even in <code>scratch</code> classes used for experimenting, they eventually end up in production code at some point!</p> </blockquote>