Preserve arguments list aligned to an opening bracket
See original GitHub issueI have the following complain. This
redis = await create_subprocess_exec("Redis", "/usr/local/bin/redis-server",
"--bind", str(host), "--port", str(redis_port))
becomes this:
redis = await create_subprocess_exec(
"Redis", "/usr/local/bin/redis-server", "--bind", str(host), "--port", str(redis_port)
)
I would like to keep the first variant (where I align code to opening bracket and line brakes are set by some logic), but cannot find proper setting, is that possible?
I have tried to modify split_before_named_assigns
, but this did not help…
Issue Analytics
- State:
- Created 7 years ago
- Reactions:12
- Comments:8 (1 by maintainers)
Top Results From Across the Web
IntelliJ Align arguments to opening parenthesis?
Save this question. Show activity on this post. When I split arguments onto multiple lines in IntelliJ, it puts the argument at a...
Read more >In emacs, how do I align closing parentheses with the start of ...
I would prefer it if the closing bracket aligned with the start of the line that contains the opening bracket. For example: function_one( ......
Read more >Environment aligned doesn't output first part in bracket - TeX
I can think of two solutions: Insert \relax before the left square bracket (it will stop the bracket from being interpreted as an...
Read more >PEP 8: Hanging Indentation and Closing Brackets in Python
However, the PEP 8 standard allows NOT to place both opening and closing braces (brackets, parentheses) into their own line—IF the arguments or...
Read more >Clang-Format Style Options — Clang 16.0.0git documentation
This section lists the supported style options. Value type is specified ... BAS_Align (in configuration: Align ) Align parameters on the open bracket,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m interested in this as well.
It looks like
CONTINUATION_INDENT_WIDTH
should have some sort of alignment option, rather than just a value.+1