pressing ctrl-F, the ide auto populates the find replace inputBox.. this is great.
If you ctrl-click a function call or variable the ide takes you to the function or definition.. this is great
suggestion
if you shift-click or alt-click the ide could auto populate the SearchPanel inputBox to find all instances of that word/variable/functionName in the current sketch.. this would be great as well.
would effectively act as a dynamic Index to jump around the program.
if it already exist.. then sorry.
Hi @ismodred. Although I don't know of a way to bind it to a mouse click shortcut, it is possible to do this via a keyboard shortcut.
The command is named "Search: Find in Files". A keyboard shortcut is not configured for this command by default in Arduino IDE, but you can configure one according to your preferences. I'll provide instructions:
- 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.
- Type
Search: Find in Files in the "Search keybindings" field of the "Keyboard Shortcuts" tab.
- 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.
- Click the pencil icon.
The "Edit Keybinding for ___" dialog will open.
- 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).
- Click the "OK" button in the dialog.
- Click the X icon on the "Keyboard Shortcuts" tab.
Assigned ctrl+d, works like charm, double click (word/phrase/function/variable)
ctrl+D and it auto-populates and brings up all instances
not as fast as the requested mod but extremely useful none the less
thank you for the guidance.
You are welcome. I'm glad if I was able to be of assistance.
Regards,
Per