Mbed Studio can search the content of files, quickly find a specific file, or find and execute commands.
Searching the content of files
You can search the content of multiple files for the active program or for a specific folder. You can also search the content of a single file.
Searching the content of multiple files
To search for a term or a regular expression across all of the files in an active program, click the Search icon or go to the Edit menu and select Find in Files. You can also press Ctrl+Shift+F (Windows) or Cmd+Shift+F (macOS).
The Search view opens. Enter text in the search box.
To search inside a single folder, go to the Explorer view, right-click the folder, and select Find in Folder.
The lower part of the view 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 view is hiding the Explorer view, you can click the Mbed 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
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.
Searching the content of a specific file
To search for a term or a regular expression in a specific file, go to the Edit menu and select Find. You can also press Ctrl+F (Windows) or Cmd+F (macOS).
A search box opens at the top of the file tab. Enter text in the search box.
To do a search on one part of the file only, enter text in the search box, then select the lines you want to check and click the Find in selection button ().
Find and replace
To replace the searched-for text with new text, click the Toggle Replace mode arrow and enter your new text. The replace mode is also available from the Edit menu > Replace option.
Click the Replace or Replace All buttons to replace a single instance or all instances of the text in the file.
Including or excluding search patterns
You can include or exclude search 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 single character. For example,
||Matches one character in the bracket. For example,
||Matches any of the conditions in the bracket. For example,
Regular expression example:
LED\d you can find all instances of the string
LED followed by a one number character (
LED2 and so on).
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 first automatically, then file results are 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.