Resets all files in the tests/ directory, overwriting any changes made to them:
git checkout main -- tests/
Just recopy the example file to the test files, named .txt to ensure no cargo formatting.
cp proptest_formatting_example.txt tests/proptest_formatting_cargofmt_test.rs
cp proptest_formatting_example.txt tests/proptest_formatting_jetbrains_test.rs
cp proptest_formatting_example.txt tests/proptest_formatting_test.rs
cp proptest_formatting_example.txt tests/proptest_test.rs
cargo fmt
JetBrains offers a CLI tool to format files, docs.
MacOS: RustRover.app/Contents/bin/format.sh -allowDefaults tests/proptest_formatting_jetbrains_test.rs
Linux: rustrover/bin/format.sh -allowDefaults tests/proptest_formatting_jetbrains_test.rs