Mbed Studio can search for the content of files, quickly find a specific file, or find and execute and command.
Searching for file content
To search for a term across all of the files in an active program, click the Search icon or press Ctrl+Shift+F (Windows) or Cmd+Shift+F (macOS) to open the search pane, and enter text in the search box.
To search inside a single folder, right-click the folder, and select Find in Folder.
The lower part of the pane displays the search results, sorted under the files in which they appear.
The number of instances of the searched text in each file is indicated beside the file name.
Click the Collapse All icon to view only the list of files in which the text you searched for appears.
Tip: If the search pane is hiding the file explorer, you can click the Studio icon or press Ctrl+Shift+E (Windows) or Cmd+Shift+E (macOS) to return to it.
Including or excluding files, folders and path segments in your search
To specify which files to include or exclude in your search:
Click the ellipsis (Toggle Search Details).
In the files to include and files to exclude search boxes, enter file names, separated by commas, to include or exclude in your search.
For example, if you enter
resources, sourcesin the files to exclude search box, the search excludes all files and folders named
Including or excluding patterns
You can include or exclude patterns in files, folders and path segments using glob syntax (wildcards). You can also search using regular expressions.
||Matches zero or more characters. For example,
||Matches zero or more path segments. For example,
||Matches any a single character. For example,
||Matches one character in the bracket. For example,
||Matches any of the conditions in the bracket. For example,
Find and replace
To replace the searched-for text with new text, click Toggle Replace, and enter your new text.
Click Replace All to replace all instances of the text in all files.
To replace all instances of the text in a specific file, hover the cursor over the file name in the search results, and click the Replace All button that appears.
Preview pending changes.
Find and navigate to a file
Press Ctrl+P (Windows) or Cmd+P (macOS) to quickly search for and open a file by name.
Recently opened files appear automatically first, then file results based on the string you enter in the search bar.
Find and execute a command
To quickly search for and execute any command in Mbed Studio, select Find Command from the View menu or press Ctrl+Shift+P (Windows) or Cmd+Shift+p (macOS).
Recently used commands appear when you open the quick command search. Search results appear when you begin to enter a string in the search bar.