最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to include code-block headers in sticky-scrolling for python code? - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论