IDE 2.x scrollbar issue

I just started using Arduino IDE 2.0.0, and when editing in the code window, clicking on the scrollbar moves the cursor as far down (or up) in the code window as the mouse is on the scrollbar instead of just moving one page at a time, which is normal scrollbar behavior. It is very hard to use like this.
I am running on Windows 11.

1 Like

Hi @lilbuzz. This behavior is intended to be configurable via "Editor › Scrollbar: Scroll By Page" / editor.scrollbar.scrollByPage in the Arduino IDE's advanced settings. Unfortunately I discovered there is a bug in the Eclipse Theia IDE framework the Arduino IDE is built on which causes the configuration to be ignored whenever you restart the IDE or open a new sketch.

I submitted a bug report about it to the Theia developers:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.

Until then, I think it will be best to get used to the default behavior (which is also the default in VS Code, so not so unusual after all) because I think the alternative of cycling the setting in every new IDE window will be far more inconvenient.

1 Like

I am unable to find the setting in the IDE that you refer to in your reply.

As I explained already, it will stop working as soon as you open another sketch or restart the IDE, but I'll provide instructions since you seem interested anyway:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
  2. Select the "Preferences: Open Settings (UI)" command from the menu.
  3. A "Preferences" tab will now open. Type editor.scrollbar.scrollByPage in the "Search Settings" field.
  4. Check the checkbox under the "Editor › Scrollbar: Scroll By Page" setting.
  5. Click the X icon on the "Preferences" tab to close the tab.

After opening a new sketch or restarting the IDE, you will find that the scrollbar behavior goes back to the default. You can repeat the instructions above, unchecking the checkbox, then checking it once more in order to make it go back to the behavior you prefer.

1 Like

Thank you. I am now able to have scrolling like I expect it to work.

You are welcome. I'm glad if I was able to be of assistance.

By the way, the Theia developers have already prepared a fix for the bug report I submitted only yesterday. Pretty good response time!

Unfortunately since this is a bug in a dependency it can take quite some time to propagate into the Arduino IDE because we generally must first wait for a release of the dependency with the fix, then for the developers to update the dependency in the IDE code base, then for them to make and validate whichever changes are required for the IDE code to work with the new dependency version (which can be very extensive when it comes to the Theia dependency). But at least we know the that process has started now.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.