Fixing Python's Function Collapse Arrow Placement

Writing Python in pycharm, the expand/collapse arrow for functions moves to the end of the function signature, aligning with the closing parenthesis.

This becomes a problem when dealing with long, multi-line function signatures, as it pushes the collapse arrow far from the def function_name_here, making it harder to quickly locate.

Note, multi-line function signatures are commonly created by various linting standards. (So devs may not have a choice on whether they would keep the signature to one line and avoid this problem)

If you still want to allow display of the signature in collapsed state, fine.  But for function definitions, a collapse arrow should always be available next to the def keyword and collapse the entire function.

This adjustment would make code navigation much smoother. Please consider reworking this UI.

0

Please sign in to leave a comment.