[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Expand]Code Style Assistance
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Collapse]Configuration Options
   Options Layers
   Auto Completion (IntelliRush)
   Break Apart Settings
   Code Places Settings
   Copyright Header
   Organize Members Settings
   Member Sections
   Navigation Tools Options
   Spell Checker Options
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Copyright Header

The Add Copyright Header Code Provider and the h template enable you to add a copyright comment at the beginning of a source code file. The default Copyright Header looks as follows:

This text is stored as an h template expansion. Templates support Text Commands and String Providers in their expansions. The default Copyright Header uses the following String Providers:

  • «?FileName» — returns the current file's full path.
  • «?GetUserFirstName» — returns "First Name" value from the IDE | User Info options page.
  • «?GetUserLastName» — returns "Last Name" value from the IDE | User Info options page.
  • «?GetUserInfo(key)» — returns an arbitrary value from the IDE | User Info options page. You can specify which value to return using the key parameter.

You should configure the "First Name", "Last Name" and "Company" fields on the IDE | User Info options page to use the default Copyright Header:

The Add Copyright Header and the h template generate the following text with the configuration above:

Is this topic helpful?​​​​​​​