This plugin adds basic support for Unity to ReSharper.
Current features:
- ReSharper knows about classes that derive from
UnityEngine.MonoBehaviour
and the classes, public fields and methods are no longer marked as unused when Solution Wide Analysis is enabled. - Alt+Insert on
MonoBehaviour
classes to generate event handlers, with method parameters. Invoke the shortcut on the class declaration. - Suppresses the naming consistency warnings on
MonoBehaviour
event handlers. E.g. ReSharper no longer suggests thatAnimatorIK
be renamed toAnimatorIk
. - Disables the
Assets
andAssets\Scripts
from being considered as "namespace providers". This means ReSharper will no longer suggest to includeAssets
orScripts
in the namespace of your code. - Automatically sets Unity projects to be C# 5 only. The Unity compiler is only C# 5, so no more incompatible C# 6 suggestions!
That's it! If you want anything else, suggest it!
Use ReSharper's Extension Manager (ReSharper → Extension Manager), search for "Unity" and install. Restart, and it'll just start working.
Please watch the repo or follow @citizenmatt and @slavikt on twitter for updates.
There is no roadmap as such. I am not a Unity developer, so do not know what the common pain points are. If you'd like to suggest a feature, please raise an issue.
Some ideas:
- Convert void method into CoRoutine (and updating usages)