[Python] How to include code-block headers in sticky-scrolling for python code?

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

  1. Stack

    Stack Membro Participativo

    Is there a way to tell VS Code to include every code block header in the sticky scrolling feature when scrolling through python code? Currently, it only does class and method definitions. I'd like it to include loops, conditionals, try, etc blocks.

    For example, it would be nice to see everything between lines 124 and 236 (i.e. between def set_default_columns... and if related_name...) in this:

    [​IMG]

    Is that possible?

    My max sticky scroll is set to 5:

    [​IMG]

    Continue reading...

Compartilhe esta Página