Mistake on this page? Email us

Managing files

Comparing files

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:

  1. Right-click a file and choose Select for compare.

  2. 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 src folder:

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.