How to make your editor add empty line at the end of file

Updated: 11th November 2023
Tags: editors phpstorm

PHP recommends adding empty line at the end of php files. But now other people find it great, especailly when comparing difference in github.

To make your editor add empty line in the end of file:

Ensure your IDE/editor has the relevant setting set:

Other IDEs may have a setting similar to any of the above.