Skip to content
| Marketplace
Sign in
Visual Studio Code>Keymaps>Format and SaveNew to Visual Studio Code? Get it now.
Format and Save

Format and Save

Francontigo

|
1,135 installs
| (0) | Free
Auto run Format Document whenever control+s is pressed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

format-and-save

Overview

The "Format and Save on Ctrl+S" extension enhances your coding efficiency by automatically formatting your code before saving the file. With this extension, pressing Ctrl+S triggers your preferred formatter and then saves the file, ensuring that your code is always neat and consistently formatted.

Usage

  1. Open any code file in your editor.
  2. Press Ctrl+S.
  3. The extension will automatically format the code and then save the file.

Repository

You can find the source code and contribute to the project on our GitHub repository.

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