Crates.io Crates.io Rust

Reverses the indentation on your file

Usage

  1. Install with cargo.

console cargo install deindentor

  1. Use it.

console deindentor <INPUT-FILE> <OUTPUT-FILE>

Example

Before:

rust fn foo(){ if true { println!("true"); } else { println!("false"); } }

After:

rust fn foo(){ if true { println!("true"); } else { println!("false"); } }