Live Editor - Fond Colour does not stick on another PC

1 visualización (últimos 30 días)
Pegah Hosseini
Pegah Hosseini el 13 de Ag. de 2021
Comentada: Pegah Hosseini el 25 de Ag. de 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

Respuestas (1)

Muhammed Yaseen
Muhammed Yaseen el 17 de Ag. de 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 comentario
Pegah Hosseini
Pegah Hosseini el 25 de Ag. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by