フィルターのクリア

Can I see code changes in the editor window?

8 ビュー (過去 30 日間)
Nicholas Davey
Nicholas Davey 2024 年 3 月 28 日
コメント済み: Aquatris 2024 年 4 月 2 日
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?

回答 (2 件)

Aquatris
Aquatris 2024 年 3 月 28 日
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 件のコメント
Nicholas Davey
Nicholas Davey 2024 年 4 月 2 日
I see VScode does code execution now too. Do you find you execute/debug things in Matlab environment and write/source control things in the VScode environment then?
Aquatris
Aquatris 2024 年 4 月 2 日
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
Strider 2024 年 3 月 28 日
  1 件のコメント
Nicholas Davey
Nicholas Davey 2024 年 3 月 29 日
Thank you for your answer but I am really looking for an in-editor view of code changes.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by