SLaks / Rebracer

Saves editor formatting settings as part of each solution.
http://visualstudiogallery.msdn.microsoft.com/410e9b9f-65f3-4495-b68e-15567e543c58
44 stars 15 forks source link

Multiple visual studio instances mess up rebracer settings #23

Open chtenb opened 8 years ago

chtenb commented 8 years ago

When having multiple visual studio instances open at the same time, one instance will get the settings of the other instance, which of course is wrong.

Reproduction steps

  1. Open a solution with visual studio 2015 that has a Rebracer.xml. Everything is fine. Formatting works like it should, according to the Rebracer.xml.
  2. Open a second different solution (ideally from some other repository) with a different Rebracer.xml. Make sure the programming language in this solution is the same as in the previous solution. Formatting works like it should in this solution.
  3. Now switch back to the first solution, and issue a formatting command. The formatting rules of the second solution will be used!
  4. Press ctrl-shift-s in the first solution (i.e. save all) and close it. Look at the changes in the repository of the first solution. The formatting rules in Rebracer.xml will be changed.
SLaks commented 8 years ago

This is probably caused by VS settings sync, which would synchronize Rebracer-controlled settings across all instances as I change them.

I'm not sure how solvable this is; try disabling settings sync for editor settings.

chtenb commented 8 years ago

Do you mean the "Synchronize settings across devices when signed in to Visual Studio"?

SLaks commented 8 years ago

Yes.

chtenb commented 8 years ago

Toggling that off doesn't seem to help :(

chtenb commented 8 years ago

Maybe this should be put in the Readme as a known issue.