Keyboard shortcut for find in all files?

Following on How to "find in all files" in IDE 2.0? ...

How do I open "find in all files" from a keyboard shortcut? ctrl+shift+F opens a web browser.

Most other editors (Sublime text, VSCode, IntelliJ, etc) use ctrl+shift+F for advanced find.

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

Well now that the conversation is derailed, can you be specific about which way I could use it better? I'd rather not make assumptions when you could tell me.

Hi @aggrav8d. You can use the "Search: Find in Files" command.

A keyboard shortcut is not configured for this command by default, but you can configure one according to your preferences. I'll provide instructions:

  1. Select File > Advanced > Keyboard Shortcuts (or Arduino IDE > Advanced > Keyboard Shortcuts for macOS users) from the Arduino IDE menus.
    The "Keyboard Shortcuts" tab will open in the Arduino IDE window.
  2. Type Search: Find in Files in the "Search keybindings" field of the "Keyboard Shortcuts" tab.
  3. Hover the mouse pointer over the "** Search: Find in Files**" 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.
3 Likes

Great!

How do i clear the "find in reference" that is now conflicting? It won't let me set the value to nothing.

Unfortunately there isn't a way to disable keyboard shortcuts via the convenient keyboard shortcuts configuration GUI, but it can be done by manually adding a "removal entry" to the data file where Arduino IDE stores your custom keyboard shortcuts settings.

You can do that by following these instructions:

  1. Select File > Advanced > Keyboard Shortcuts (or Arduino IDE > Advanced > Keyboard Shortcuts for macOS users) 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": "-arduino-find-in-reference",
        "keybinding": "CtrlCmd+Shift+F"
      }
    ]
    
    :exclamation: If there is existing content in the "keymaps.json" tab, you must merge the above entry into the content.
  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.

Please let me know if you have any questions or problems while following those instructions.

1 Like

You originally posted this in 'Programming', but it's not a question about programming - it's a question specifically about the v2.x IDE.

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