Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>final-newlineNew to Visual Studio Code? Get it now.
final-newline

final-newline

Sam Verschueren

|
31,684 installs
| (6) | Free
Inserts a final newline when saving the document.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-final-newline

Inserts a final newline when saving the document.

The EditorConfig extension supports this feature as well. Please take a look at EditorConfig if you want the same behaviour across multiple editors.

Install

Press F1 and narrow down the list commands by typing extension. Pick Extensions: Install Extension.

Simply pick the final-newline extension from the list

Usage

Enable the newline insertion when saving the document in the VSCode Settings.

{
  "files.insertFinalNewline": true
}

License

MIT © Sam Verschueren

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft