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

keep_simple_control_block_one_line and keep_simple_function_one_line override what's already in the code #284

Open
swajj opened this issue Jun 22, 2023 · 0 comments

Comments

@swajj
Copy link

swajj commented Jun 22, 2023

The names and descriptions of these ("Allow format simple function to one line...") imply that this setting will, if true, leave one-line functions and control blocks alone if already present in the code.

Instead, these options forceably change my one-statement blocks into single-line blocks.

I want the option to work as worded- If there is a single-line block, leave it alone ("allow" it) but do NOT reformat things to be one-line for me, please.

I'd also be fine if this was a tristate option- true, false, or "leave alone". But as it is, there's no way to use this formatter without letting it completely override all my custom choices for single- vs multi-line formatting.

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

1 participant