How can I configure List Indices Alignment option for Reformat?
Let's suppose I want Reformat to work like this:
ingredients[
123123123:
123123123123
]
However, I cannot find any option that is related to Array Indices. No matter what I try I always get Reformat to work like this:
ingredients[
123123123:
123123123123
]
What configuration I can change for this situation?
Please sign in to leave a comment.
Hi,
Maybe it's just me, but I fail to see the point of such formatting. What is the object you referring to? Please provide a working code snippet. For example, I can understand:
That's formatted normally. Please provide your example.
The use case is something like this:
Unlike this brief example, inside my actual code there is some longer index because of function calls, etc. (like, instead of index_begin there's something like calculate_index_begin(variable_one, variable_two))
Ok, I see what you mean. However I've never seen anyone trying to use index ranges like this
But maybe it's just me. While I think that you should just write it in one line, `a_list[2:4]` , feel free to submit this as a bug report to our issue tracker: https://youtrack.jetbrains.com/issues/PY
Refer to the following article if you're not familiar with YouTrack:
https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications