sourcegear / rust-vs-extension

Information about the SourceGear Rust extension for Visual Studio
29 stars 0 forks source link

Is there a place for a rustfmt.toml ? #15

Open picrap opened 1 year ago

picrap commented 1 year ago

Hi,

currently the “Format Document” feature works with what seem to be default parameters and I wanted to know if there is a way to customize it. Rust formatter seems to work with a rustfmt.toml file but I couldn’t find a location where it was used by Visual Studio. The ideal place would be the project itself with a fallback in a standard location.

Thank you.

ericsink commented 1 year ago

Sorry for the delay in reply.

Does it work if the rustfmt.toml is adjacent to Cargo.toml? I think it should, and if it does not, we've got something to fix.

picrap commented 1 year ago

I tested that, and it didn’t work (however, since I’m a Rust n00b you can not consider my answer as 100% reliable 😉).