Pemformat Kode Rust
Memandu
Pemformat Kode Rust
Format your Rust code following official rustfmt conventions. Paste your code, configure formatting options, and get clean, consistently styled output matching cargo fmt standards.
Cara Penggunaan
Paste your Rust code into the editor, select your preferred max line width (80, 100, or 120 characters) and Rust edition (2015, 2018, or 2021), then click Format. The formatted output appears with syntax highlighting, ready to copy or download as a .rs file.
Fitur
- Rustfmt Rules – 4-space indentation, trailing commas, consistent brace placement, and operator spacing
- Configurable Max Width – Choose 80, 100, or 120 character line width
- Edition Support – Format for Rust 2015, 2018, or 2021 edition
- Syntax Highlighting – Color-coded Rust code in both input and output
- Comment Preservation – Inline and block comments are kept intact
- Download as .rs – Save formatted code directly as a Rust source file
- Sample Code – Test with a pre-filled Rust example
Instal Ekstensi Kami
Tambahkan alat IO ke browser favorit Anda untuk akses instan dan pencarian lebih cepat
恵 Papan Skor Telah Tiba!
Papan Skor adalah cara yang menyenangkan untuk melacak permainan Anda, semua data disimpan di browser Anda. Lebih banyak fitur akan segera hadir!
Alat Wajib Coba
Lihat semua Pendatang baru
Lihat semuaMemperbarui: Kita alat terbaru ditambahkan pada 10 Mar 2026
