admin管理员组

文章数量:1410705

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:

Is that possible?

My max sticky scroll is set to 5:

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:

Is that possible?

My max sticky scroll is set to 5:

Share Improve this question asked Mar 9 at 17:52 hepcat72hepcat72 1,1467 silver badges29 bronze badges 2
  • Make your own plugin or search for relevant extensions in the Marketplace. – Minxin Yu - MSFT Commented Mar 10 at 6:08
  • Well, I've never done that before... If you know for sure that it's not possible using existing versions/extensions, then I'll just take this question down, because boolean questions are not appropriate for this site. – hepcat72 Commented Mar 10 at 17:27
Add a comment  | 

1 Answer 1

Reset to default 0

The default Python extension does not support this feature. I have not tried any third-party tools.

I noticed that Visual Studio 's sticky scroll supports this feature by default. You can post a feature request on the VS Code GitHub.

本文标签: How to include codeblock headers in stickyscrolling for python codeStack Overflow