Can I see code changes in the editor window?
Afficher commentaires plus anciens
If I have some code which is under source control is it possible to see lines which are modified or new in the editor window?
In many IDEs lines which are added/modified/deleted appear with a coloured bar next to them in the margin, perhaps green/blue/red respectively. This seems to be missing from the Matlab editor. Am I missing something?
Réponses (2)
Aquatris
le 28 Mar 2024
0 votes
You can right click the .m file on Matlab's 'Current Folder' view. There under the 'Source Control' you have options to 'Compare to Ancestor' or 'Compare to Revision', which does exactly what you want, just not in the editor window.
4 commentaires
Nicholas Davey
le 29 Mar 2024
Aquatris
le 1 Avr 2024
Agreed, thats why I generaly use VS code to check those changes. It has much better version control capabilities.
Nicholas Davey
le 2 Avr 2024
Aquatris
le 2 Avr 2024
Generally yes. I debug/execute my code in Matlab environment but for version control stuff, commiting things, pull/push, comparison to revisions etc., I generally use VScode.
Strider
le 28 Mar 2024
0 votes
Here is some good documentation on it: Compare Files and Folders and Merge Files - MATLAB & Simulink (mathworks.com)
1 commentaire
Nicholas Davey
le 29 Mar 2024
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!