title: IntelliJ IDEA - Remove empty line at End of File using hot keys
body: <p>Am using IntelliJ IDEA Ultimate 2019.3 on macOS Catalina 10.15.4.</p>
  
  <p>Trying to figure out how to NOT have an empty line when I conduct a <kbd>cmd</kbd><kbd>option</kbd><kbd>l</kbd> via the hot keys.</p>
  
  <p>Unformatted:</p>
  
  <p><a href="https://i.stack.imgur.com/ivhwb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ivhwb.png" alt="Unformatted File"></a></p>
  
  <hr>
  
  <p>After conducting <kbd>cmd</kbd><kbd>option</kbd><kbd>l</kbd>, its still unformatted (lines 10 and 11 are still visible):</p>
  
  <p><a href="https://i.stack.imgur.com/7ScrB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ScrB.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>This is what I am seeking after issuing <kbd>cmd</kbd><kbd>option</kbd><kbd>l</kbd>:</p>
  
  <p><a href="https://i.stack.imgur.com/BGtY8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BGtY8.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>As you can see, I do not want an empty line / newline inserted after the last closing <code>}</code> brace of a Java class.</p>