How To Enable/Disable Trim Final Newlines VSCode

YouTube video
  1. Open VS Code.
  2. Click on File.
  3. Then find Preferences -> settings.
  4. Click on the Text Editor in the left side menu.
  5. Then Click on Files.
  6. Locate the Trim Final Newlines Setting.
  7. Check or Uncheck: When enabled, will trim all new lines after the final new line at the end of the file when saving it.