MATLAB Compare Tool in 2021b
14 views (last 30 days)
Some changes have been made to the comparison tool in MATLAB 2021b that are steps backwards, in my opinion. Or, there are preferences that I just cannot find that would revert to previous functionality.
- The comparison tool in 2021a and before omitted lines that are the same between the two files with a line that simply states [# unmodified lines hidden]. This was extremely helpful and now I have to scroll through an entire long file to see all the changes, some of which may be at the very end. I realize that we can navigate through the changes with the Previous and Next arrow buttons, but I find scrolling through the file to be more helpful, especially when many changes are present.
- The line numbers were hyperlinked, allowing the user to quickly open the file in question with the line that is clicked highlighted in the opened file.
- A summary of matched and unmatched lines was included at the bottom of the window.
- A "New" button in the toolstrip allowed for quickly opening up the dialog to compare more files.
- Save As and Print options also seem to be missing.
Is there any way to toggle these features back on in 2021b? If not, please add them back in to a later release.
Sivani Pentapati on 7 Jan 2022
Thank you sending this feedback. I have brought your feedback to the notice of the concerned people and the issues might be addressed in a future release.
In the meantime, in R2021b, you can change a setting which would let you use the text comparison as it was in R2021a. The setting can be configured with the following steps:
settingsRoot = settings();
textSetting = settingsRoot.comparisons.text.UseNoJava;
In order to change the behaviour of the text diff to R2021a for only the current MATLAB session, set the Temporary setting value of textSetting to false
textSetting.TemporaryValue = false;