How to Add Source Control Buttons to the MATLAB Toolstrip?

31 views (last 30 days)
I'm using MATLAB R2024b and working with Git for source control. Right now, I have to right-click in the Current Folder window and select Source Control to access Git actions like Pull, Push, and Commit or use !git commands.
Is it possible to add these Git commands as buttons in the Toolstrip (where the Run and Step buttons are located) for quicker access?
I've looked for a way to enable this, but I can't find an option to show a Source Control section in the Toolstrip. Can someone guide me step by step on how to achieve this?
Thank you!

Accepted Answer

Swastik Sarkar
Swastik Sarkar on 18 Nov 2024 at 12:02
Customizing the Toolstrip in the MATLAB IDE is not supported. This feature is only available in Simulink, as detailed in the documentation:
As a workaround, it is possible to create a MATLAB App that executes specific operations upon launch. This app can then be added to the Quick Access Toolbar for convenience. For more information on creating add-ons, refer to the following documentation:
Additionally, guidance on using the Quick Access Toolbar can be found here: https://www.mathworks.com/help/matlab/matlab_env/access-frequently-used-features.html#buhx0ov-36
Hope this helps streamline workflow.

More Answers (0)

Categories

Find more on Source Control in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!