Filter löschen
Filter löschen

Live Editor - Fond Colour does not stick on another PC

1 Ansicht (letzte 30 Tage)
Pegah Hosseini
Pegah Hosseini am 13 Aug. 2021
Kommentiert: Pegah Hosseini am 25 Aug. 2021
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

Antworten (1)

Muhammed Yaseen
Muhammed Yaseen am 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 Kommentar
Pegah Hosseini
Pegah Hosseini am 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by