Disable line wrapping shortcut option z in Arduino IDE 2.x.x

Is there a way to disable the line wrapping shortcut option z?
Info:
MacOS Monterey
Arduino IDE 2.1.1
Thank you.
Need more info?
Let me know.

Hello!

  1. Select Arduino IDE > Advanced > Keyboard Shortcuts from the Arduino IDE menus.
    The "Keyboard Shortcuts" tab will open in the Arduino IDE window.
  2. Click the { } icon at the right side of the tab bar.
    A "keymaps.json" tab will open in a split editor panel.
  3. Add the following text to the "keymaps.json" tab:
    [
      {
        "command": "-editor.action.toggleWordWrap",
        "keybinding": "alt+z"
      }
    ]
    
  4. Click the X icon on the "keymaps.json" tab.
  5. If you get a save confirmation dialog, click the "SAVE" button.
  6. Click the X icon on the "Keyboard Shortcuts" tab.
1 Like

Or actually is it possible to just change the shortcut?
I thought about it and the feature will be useful sometimes.
Thank you.

Yes:

  1. Select File > Advanced > Keyboard Shortcuts from the Arduino IDE menus.
    The "Keyboard Shortcuts" tab will open in the Arduino IDE window.
  2. Type View: Toggle Word Wrap in the "Search keybindings" field of the "Keyboard Shortcuts" tab.
  3. Hover the mouse pointer over the "View: Toggle Word Wrap" row in the search results.
    A pencil icon ("Edit Keybinding") will appear at the left side of the row.
  4. Click the pencil icon.
    The "Edit Keybinding for ___" dialog will open.
  5. The input field in the dialog contains a text representation of the keyboard shortcut. Adjust this according to your preferences.
    Notes about the syntax:
    • For most keys you can simply use the name of the key (i.e., a, 3, /, f2).
    • Special key names:
      • cmd - Command key () on macOS.
      • ctrlcmd - Ctrl key on Linux/Windows, Command key () on macOS.
    • Use the + separator for key combinations (e.g., ctrl+s).
    • Use a space separator for key sequences (AKA "chords") (e.g., ctrl+k ctrl+i).
  6. Click the "OK" button in the dialog.
  7. Click the X icon on the "Keyboard Shortcuts" tab.
1 Like

What command would you recommend using?
Maybe command l if that is unused?
Thanks.

I usually additional modifiers to a rarely used shortcut if I want to avoid collisions with the existing shortcuts. So if I didn't like the default I would probably do something like ctrlcmd+alt+shift+z.

1 Like

Whoa. Complicated. Is command L or command shift L available?
Thanks.

[quote="ptillisch, post:6, topic:1146052"]
ctrlcmd+alt+shift+z.
[/quote]I will probably use this.
Thanks.

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