Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure sticky scrolling of tree views in VS Code?

I noticed that in VS Code 1.85, tree views like the Explorer View now support sticky scrolling. How can I enable or disable this feature, and how else can it be configured?

like image 463
starball Avatar asked Jan 24 '26 14:01

starball


2 Answers

It can be enabled or disabled using the workbench.tree.enableStickyScroll setting. The default value is true (enabled).

There's also the command View: Toggle Tree Sticky Scroll (which has command ID tree.toggleStickyScroll if you want to change the keybinding).

The other setting that currently exists for it is workbench.tree.stickyScrollMaxItemCount:

Controls the number of sticky elements displayed in the tree when #workbench.tree.enableStickyScroll# is enabled.

You can find the related issue ticket at Tree: Support sticky scroll #161207. Related release notes are here. You should later also be able to use the right click / context menu to toggle it (see issue #199381).

See also the Sticky Scroll documentation page.

like image 131
starball Avatar answered Jan 27 '26 18:01

starball


enter image description here

The sticky scrolling can be enabled or disabled in the settings. Just go settings and type "sticky".

Enable / Disable like in the picture below.

like image 32
ChangNoi Avatar answered Jan 27 '26 18:01

ChangNoi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!