resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

Rider UnityEngine settings for Prefix & Suffix not saved

Open ggrafhalfbrick opened this issue 4 years ago • 1 comments

When saving the preferences for the UnityEngine plugin for Rider 2021 the settings for Prefix and Suffix are not going to be saved in any of the setting layers. image

ggrafhalfbrick avatar Sep 07 '21 01:09 ggrafhalfbrick

I can't recreate this. If I save to the personal layer, I get the values written to .sln.DotSettings.user, and if I select team shared, then it's written to .sln.DotSettings, and the values are visible in the options page when I reopen the project. Could you check in .sln.DotSettings and .sln.DotSettings.user for a line like this, please (the GUID should be the same):

<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=5f0fdb63_002Dc892_002D4d2c_002D9324_002D15c80b22a7ef/@EntryIndexedValue">&lt;Policy&gt;&lt;Descriptor Staticness="Instance" AccessRightKinds="Any" Description="Unity serialized field"&gt;&lt;ElementKinds&gt;&lt;Kind Name="UNITY_SERIALISED_FIELD" /&gt;&lt;/ElementKinds&gt;&lt;/Descriptor&gt;&lt;Policy Inspect="True" Prefix="foo" Suffix="far" Style="aaBb" /&gt;&lt;/Policy&gt;</s:String>

Yes, it's a syntax only a computer could love - an XML blob inside an XML value, but you should be able to see the Prefix and Suffix values.

citizenmatt avatar Sep 15 '21 07:09 citizenmatt

I'm closing this due to inactivity. Please feel free to comment and we can reopen.

citizenmatt avatar Jan 27 '23 00:01 citizenmatt