[Python] VSCode fold docstrings Python MacOS

Discussão em 'Python' iniciado por Stack, Março 25, 2025.

  1. Stack

    Stack Membro Participativo

    I have tried using the command:

    >Fold Level 2 and it is causing too much folding.

    And

    >Fold Level 3 does not fold the methods' docstrings.

    My primary goal is to fold the docstrings and nothing else.

    def test(a, b, c):
    """A lot of multiline
    docstrings here
    that dont get folded
    """
    return ...


    would turn into:

    def test(a, b, c):
    return ...


    Is there a way to achieve this?

    Continue reading...

Compartilhe esta Página