Skip to content

swalex/resharper-unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity for ReSharper

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 that AnimatorIK be renamed to AnimatorIk.
  • Disables the Assets and Assets\Scripts from being considered as "namespace providers". This means ReSharper will no longer suggest to include Assets or Scripts 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!

Installing

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.

Roadmap

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)

About

ReSharper support for Unity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%