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

Selecting bracket style in code actions #10383

Open
arielf212 opened this issue Sep 28, 2021 · 1 comment
Open

Selecting bracket style in code actions #10383

arielf212 opened this issue Sep 28, 2021 · 1 comment

Comments

@arielf212
Copy link
Contributor

Any code assist that generates some kind of function creates it with the standard rust (K&R) bracket style:

fn foo() {
    // Do stuff...
}

I would really like to change it to BSD style, as that is the style that my whole codebase uses:

fn foo()
{
   // Do stuff...
}

Does there exist a setting that I can change, or is this something that would need a codebase change?

@lnicola
Copy link
Member

lnicola commented Sep 28, 2021

CC e.g. #1665

But maybe you can configure rustfmt to your liking, and use the formatting functionality in your editor.

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