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

Add CLI Argument for Custom Indentation Length #415

Open
anders130 opened this issue Jun 25, 2024 · 1 comment
Open

Add CLI Argument for Custom Indentation Length #415

anders130 opened this issue Jun 25, 2024 · 1 comment
Labels
component | style Modifications to the formatting rules roadmap | style config status | it is a good thing We agree it is good to implement this type | feature request New feature or request

Comments

@anders130
Copy link

First, I'd like to say: This formatter is amazing. The style guide it follows is excellent. However, there's one aspect I'd like to customize for my personal use: the indentation length.

I prefer using 4 spaces for indentation instead of the default 2 spaces. Unfortunately, I'm not proficient in Rust, so I'm not sure what changes are required to achieve this.

A nice solution would be to have a CLI argument (such as -i or --indent) that allows users to override the default indentation length.

@ZainKergaye
Copy link

I agree, is there an easy way to modify the indentation style? I want to use 4 spaces aswell.

@kamadorueda kamadorueda added type | feature request New feature or request component | style Modifications to the formatting rules status | it is a good thing We agree it is good to implement this roadmap | style config labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component | style Modifications to the formatting rules roadmap | style config status | it is a good thing We agree it is good to implement this type | feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants