Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
picrap opened this issue Sep 8, 2023 · 2 comments
Open

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

picrap opened this issue Sep 8, 2023 · 2 comments

Comments

@picrap
Copy link

picrap commented Sep 8, 2023

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
Copy link
Contributor

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
Copy link
Author

picrap commented Sep 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants