Multiple cursors

As I can tell, Arduino IDE 2.0 is based on VS Code, that has very useful feature called multiple cursors. Arduino 2.0 supports this feature - press and hold alt key, click, place cursors using mouse click, release alt. But when I release alt key, arduino focuses on the menu bar. Same thing with block selection (Shift + Alt).
Can we fix it?

Sorry for my bad english.

As a workaround, press alt key again and selection will work as expected. But it's really annoying.

Thanks for your report @dima01lobach01. I am able to reproduce the bug. I investigated and found it is actually a bug in the Eclipse Theia IDE framework Arduino IDE is built on. I submitted a report there:


I did find an alternative workaround, but I think yours is probably better. I'll share the one I found anyway in case it might be of use to someone:

  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 in the Arduino IDE main panel. In the "Search Settings" field, type editor.multiCursorModifier
  4. Select "ctrlCmd" from the menu under the "Editor: Multi Cursor Modifier" setting.
  5. Close the Preferences tab by clicking its X icon.

You will now need to hold the Ctrl key instead of Alt to set multi-cursors. That is not great because usually we use Ctrl+left click for "Go to Definition"

I've updated to last nightly (pretty sure, that it works on 2.0.4 release) and on my Manjaro Linux System, everything works as expected

Hi @dima01lobach01. I was only ever able to reproduce the fault on my Windows machine. The fault does not occur on my Linux machine.

Unfortunately I just checked the latest nightly build on my Windows machine and the fault still occurs so we can't consider it universally resolved yet. But I'm glad everything is working for you at least.

1 Like

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