Rebracer icon indicating copy to clipboard operation
Rebracer copied to clipboard

More granular control over which settings are saved where

Open ekolis opened this issue 8 years ago • 1 comments

I'd like to have the option to persist only certain settings to Rebracer.xml for any given solution, rather than automatically dumping them all.

I'd also like to be able to say "this is a global setting" when I have a solution open and adjust some settings, so it's saved normally and not through Rebracer.xml. Otherwise I'd have to close the solution before doing so, which I'd surely forget!

ekolis avatar Nov 22 '16 16:11 ekolis

I've had the same issue and have created a fork with a proposed change:

In the solution's Rebracer.xml file you can add the attribute RebracerCanAddValues="false" to any ToolsOptionsSubCategory element. This will prevent Rebracer from adding any additional PropertyValue elements to the ToolsOptionsSubCategory element, only update those that are already there.

I'm planning to use this change to persist C# tab settings without effecting thinks like the scroll bar settings that are user specific but in the same section:

<ToolsOptionsSubCategory name="CSharp" RegisteredName="CSharp" PackageName="Text Management Package" RebracerCanAddValues="false"> <PropertyValue name="InsertTabs">true</PropertyValue> </ToolsOptionsSubCategory>

@SLaks, would you mind taking a look at my fork and letting me know what you think?

EddieWhi avatar Jan 18 '17 10:01 EddieWhi