Skip to content

License Header Manager and Resharper

FlorianDecker edited this page Apr 12, 2017 · 2 revisions

The Resharper plugin for Visual Studio also supports automatic insertion of file headers which can be used for adding license headers as well. But while ReSharper only allows you to specify one file header per solution, the License Header Manager allows you to

  • define license headers per project
  • share license headers between projects
  • define different license headers for different file types

You can configure LHM to work exactly like the ReSharper feature while keeping these benefits:

In the LHM options, link the Add License Header command to the ReSharper_SilentCleanupCode command.

Important: This will only work if you chose to execute the command after ReSharper_SilentCleanupCode. For some reason yet to be discovered, selecting before doesn't work.