Using Vertical Scrollbar

Haven't looked closely at this until now.

Q1: Are there no 'Arrow markers' at top and bottom of vertical scroll bar for precise control, as in 1.8.19?

Q2: Don't know how/when this appeared. What is it called and how to use it?

Q3: Are there any other 'markers', as think I saw one recently but cannot reproduce it?

The marker indicates the location of the cursor on the page.

Under certain circumstances, yes. I'm not sure of any case where there will be while Arduino IDE is in the default configuration, but you will see markers for "problems" if you have the "Arduino › Language: Real Time Diagnostics" advanced setting enabled.

1 Like

Q1 never used it so no idea.

Q2 is the relative location of the cursor. The length of the shaded part is the size of the visible window.

Q3 no idea

I just checked and my 1.8.19 does NOT have the Q1 precise control markers.

Thanks.
Re Q1, if that's a No, why not?

Here is mine, no markers. You may have added them via some additional settings dialogue.

I remembered a couple:

When using the "Find" feature (Edit > Find or Ctrl+F), there will be markers on the "ruler" for all occurrences matching the find query.

If you place the cursor on a line that contains a bracket, markers will be shown on the ruler for the locations of the opening and closing brackets.

That would be a question for the designers of the underlying framework upon which Arduino IDE is built. I'm not sure which at which layer the scrollbar design is implemented.

I see that VS Code has the same scrollbar design (the Eclipse Theia Platform IDE framework upon which Arduino IDE is built is based on code and the UI design of VS Code), and that this was intentional:

I've verified with those in the know that this is by design.

Thanks @ptillisch.

I share the views of that thread’s author. Basically an inexplicable loss of a useful feature. Particularly useful when comparing two sketches side-by-side.

Q1: I've never used any "Arrow marker", you can scroll (i.e. "precise contro") by using the mouse and dragging the "enhanced" area of ​​the scroll bar, or by using Ctrl-Up or Ctrl-Down to scroll the visible area one line at a time.

1 Like

Q2: it shows the current cursor position in relation to the visible area. Example:


If I scroll the window the cursor is still shown to tell me where I have left it, so appears outside of the "shaded" area:

Q3: other markers appears to show where the symbol under the cursor appars in the code, as small grey rectangles (here I have my cursor over "lcd" object):

NOTE: this is the standard 2.3.5+ application behaviour under Windows, I suspect it can change under MacOS but I can't tell because I don't have any MacOS system (and I don't like Apple...)

1 Like

Thanks a bunch @docdoc. Embarrassed to confess it, but if I ever knew that Ctrl-Up or Ctrl-Down alternative then I'd forgotten it!

Now needs some muscle memory retraining. Only recently switched to v2 as my preferred IDE, after long use of 1.8.19.

Also using a setting of a 2 line minimum for mouse wheel, as 1 is a tad too slow.

Thanks also for your other answers. Re Q3, yes, subsequent experiment revealed the 'found' markers. BTW, F1 > marker and several other potentially relevant searches gave no hits.