title: How can I check for errors without saving the file?
body: <p>I'm using Visual Studio Code with the <a href="https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug" rel="nofollow noreferrer">PHP Debug</a> extension.</p>
  
  <p>When I save a PHP file, it checks for errors and successfully finds any syntax errors in the file.</p>
  
  <p>But sometimes I don't want to save the file yet; I just want to check for errors. How can I do this? I don't see a button for it, and they don't appear automatically in the Problems area.</p>
  
  <p><a href="https://i.stack.imgur.com/zB6zj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zB6zj.png" alt="enter image description here"></a></p>