View Modified Files

To review, analyze, label, and commit modified project files, use the Modified (number of files) view. The modified files view is visible only if you are using source control with your project.

If you need to update the modified files list, click Refresh in the source control section.

Lists of modified files are sometimes called changesets. You can perform the same operations in the Modified files view as you can in other file views. To view changes, see Compare Revisions.

Tip

In the Modified files view, it can be useful to switch to the List layout.

You can identify modified or conflicted folder contents using the source control summary status. In the Files views, folders display rolled-up source control status to help you locate changes in files, particularly conflicted files. Pause on the source control status (for example, the SVN or Git column) for a folder to see how many files inside are modified, conflicted, added, or deleted.

Project Definition Files

The files in the resources/project folder are project definition files generated when you first create or make changes to your project. The project definition files allow you to add the project metadata to files without checking them out, for example, by creating shortcuts, adding labels, and adding a project description. Project definition files also specify the files added to your project. These files are not part of the project.

Any changes you make to your project (for example, to shortcuts, labels, categories, or files in the project) generate changes in the folder. These files store the definition of your project in XML files whose format is subject to change.

You do not need to view project definition files directly, except when the source control tool requires a merge. The files are shown so that you know about all the files being committed to the source control system. See Resolve Conflicts.

The default project definition file type is Use multiple project files. If you want to change project definition file management from the type selected when the project was created:

  1. On the Home tab, in the Environment section, click Preferences. Select MATLAB > Project and in the New Projects section, select a Project definition files: option.

    Use multiple project files is better for avoiding merging issues on shared projects.

    Use single project file (not recommended for source control) is faster but is likely to cause merge issues when two users submit changes in the same project to a source control tool.

  2. Create a .mlproj archive of the project. For more information, see Archive Projects or export.

  3. Create a new project from the archived project. For more information, see Create a New Project from an Archived Project.

You can use the project preferences to change the project definition folder for new projects. Instead of resources/project, you can choose the .SimulinkProject or _SimulinkProject folder names adopted for releases before R2019a.

To stop managing your folder with a project and delete the resources/project folder, see matlab.project.deleteProject.

Related Examples

More About