Mbed Studio supports a side-by-side view of files, both for comparing local and remote versions in source control and comparing two local files. You can compare any two files in your workspace, even if they're not in the same program.
To compare files:
Right-click a file and choose Select for compare.
Right-click a second file and choose Compare with selected.
Mbed Studio displays both files in a single tab, with highlighted differences:
Changing file locations
Mbed Studio puts new files and folders in the root directory. You can move these files to other folders within your program structure, and Mbed Studio will detect the location change and build your program with the correct file paths.
Warning: You cannot move the
mbed-os library; it must remain in the root folder.
To create a folder, either:
- Right-click the program and select New Folder.
- Go to Menu > File > New Folder.
You can move files around by dragging and dropping.
In this example, there is a new library in a
lib folder and the default
main.cpp file in an