Trình định dạng脚本 Bash
Công cụ miễn phí trực tuyến Định dạng và làm đẹp脚本 Bash/Shell, không cần cài đặt
Bash/Shell Script Formatter
Format Bash and shell scripts with proper indentation and structure. This tool handles functions, loops, conditionals, and variable assignments.
How to Use
Paste your shell script, configure options (indent size, spaces/tabs, trim lines), and click Format. The tool will restructure your script with consistent formatting.
▶Should I use this instead of shfmt?
No. Use shfmt for production. This tool is for quick checks when shfmt is not available.
▶Does it handle all shell syntax?
It handles common Bash syntax but may not support all POSIX features or edge cases. For complex scripts, use a full-featured formatter.
Nếu công cụ này giúp được bạn, hãy mời tác giả một ly cà phê.
Mời ly cà phê