Zahzah
Zahzah

Reputation: 81

Deactivate console messages

I'm currently working on a project and an I used several print commands in order to see if all is going well. But all these prints take some execution time and since the program is running well I was wondering if there is a way to comment or delete all of those commands at once.

Upvotes: 1

Views: 75

Answers (1)

mondjunge
mondjunge

Reputation: 1239

Generally you can perform a "Replace in Projects...".

Presuming you code in JAVA:

  • Goto "Edit > Replace in Projects"
  • Set "Containing Text" to System.out.print
  • Set "Match" to Literal
  • Set "Replace with" to //System.out.print
  • Choose your Scope (Project)
  • Hit Continue

It is easy as that. Not even a need for Regular expression.

Have Fun.

Upvotes: 1

Related Questions