JetBrains / JetBrains/resharper-unity
Quick-fix to apply a FormerlySerializedAs to serialized values in assets, prefabs and scenes
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Opening the quick-fix popup with the caret on a FormerlySerializedAs attribute could offer the user to instantly apply the new name to all uses of the old identifier.
This would be a very awesome feature, as right now it's easy for a codebase to become polluted with this attribute over time. Without manual investigation, it's never clear whether removing the attribute would be safe or if it would lose data.
The IDE could either do this manually by searching for the script's GUID and then parsing the YAML for the results, or use its existing index if "Parse text based assets" is enabled.
Contributor guide
Research direction
Start at the quick-fix popup for the FormerlySerializedAs attribute and review how the IDE handles script GUIDs, YAML parsing, and the existing index when “Parse text based assets” is enabled. Done means the quick-fix can safely apply the renamed identifier across serialized values in assets, prefabs, and scenes, with behavior defined for both search approaches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100