Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dockerfile TidyNew to Visual Studio Code? Get it now.
Dockerfile Tidy

Dockerfile Tidy

Emmanuel Adebayo

|
447 installs
| (0) | Free
Automatically formats and tidies up Dockerfiles, ensuring a clean, consistent, and well-organized structure with proper indentation and alignment.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dockerfile Tidy

Dockerfile Tidy is a VS Code extension that automatically formats Dockerfiles for better readability and consistency.

Features

  • Auto Formatting on Save: Automatically formats your Dockerfile with consistent indentation and alignment.
  • Instruction Formatting: Ensures Dockerfile instructions are capitalized, properly indents multi-line instructions, and preserves comments.
  • Key-Value Pair Alignment: Aligns ENV, ARG, and LABEL instructions for readability.
  • Command Integration: Runs automatically on save but can also be triggered manually.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS).
  3. Search for "Dockerfile Tidy" and click "Install".

Usage

Simply open a Dockerfile in VSCode, make your changes, and save (Ctrl+S or Cmd+S). Dockerfile Tidy will format the file automatically.

Contributing

Contributions are welcome! Fork the repo, create a branch, and submit a pull request. Open an issue for major changes.

License

This project is licensed under the MIT License. See the LICENSE for details.


Enjoy using Dockerfile Tidy! For feedback or contributions, visit us on GitHub.

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