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
- Open Visual Studio Code.
- Go to the Extensions view (
Ctrl+Shift+X or Cmd+Shift+X on macOS).
- 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.
| |