Effacer les filtres
Effacer les filtres

Live Editor - Fond Colour does not stick on another PC

3 vues (au cours des 30 derniers jours)
Pegah Hosseini
Pegah Hosseini le 13 Août 2021
Commenté : Pegah Hosseini le 25 Août 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

Réponses (1)

Muhammed Yaseen
Muhammed Yaseen le 17 Août 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 commentaire
Pegah Hosseini
Pegah Hosseini le 25 Août 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by