Clear Filters
Clear Filters

Live Editor - Fond Colour does not stick on another PC

1 view (last 30 days)
Hi there,
I have made a live script which works without errors. I have personalised it and changed the colours of the title, the headings and the text using "s.matlab.fonts.editor....Color.PersonalValue" of settings object.
When I close a session and open it again, all my changes are still there but when I commit it to SVN and my colleagues download it, all colours have changed back to black again.
Any idea why? And how I can fix it?
Thanks

Answers (1)

Muhammed Yaseen
Muhammed Yaseen on 17 Aug 2021
I understand that you would like to know why the changes to the settings object is persistent in your machine but not with your colleagues.
The personal value of the settings leaf nodes are persistent across MATLAB sessions for an individual user. When modified, the value is saved to the preferences folder.
A quick workaround will be to export your user preferences directory to the other computer,. You can get the location of the preferences directory by typing the following command in the MATLAB command window,
prefdir
To know more about settings structure:
To know more about "prefdir" command:
  1 Comment
Pegah Hosseini
Pegah Hosseini on 25 Aug 2021
Thank you very much Muhammed.
I understand now that this is probably the only way to do it but I think I am not comfortable with this approach since it means chaning all prefernces of my colleagues laptops to that of mine.
This seems like a shortcoming that I am allowed to make all these changes without being able to pass them on when I pass the code on.
Thank you again for your help.

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!