title: Use dbms_output.put_line in Datagrip for .sql files
body: <p>I started to use <a href="https://www.jetbrains.com/datagrip/" rel="noreferrer">Datagrip</a> for my PL/SQL (school) projects that need the use of <code>DBMS_OUTPUT.PUT_LINE</code>. Before this I was using Oracle SQL developer and I was able to use DBMS_OUTPUT by adding the following: </p>
  
  <pre><code>SET serveroutput ON;
  </code></pre>
  
  <p>There is a related <a href="https://stackoverflow.com/questions/41490968/how-to-set-server-output-on-in-datagrip">question</a> that shows how to enable or disable showing the contents of the DBMS_OUTPUT buffer but this only works for the Database Console tool window. How can I apply this to any .sql file? Currently, I am copying the content of my .sql files and run it in the Console tool window but there must be a better way.</p>