# Copyright Profiles

> **TL;DR**
> `File | Settings | Editor | Copyright | Copyright Profiles` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Editor | Copyright | Copyright Profiles` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

> **Note:**
> This page describes controls. For more information about configuring a copyright notice, refer to [Copyright](copyright.html).

## Profiles Toolbar

| Item | Tooltip and Shortcut | Description |
| --- | --- | --- |
| ![the Add button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg) | `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (NetBeans), `Ctrl+N` (Visual Studio), `⌘ N` (Visual Studio (macOS)), `Alt+Insert` (Eclipse), `⌘ N` (Eclipse (macOS)) | Add a new profile. |
| ![the Remove button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.remove.svg) | `Alt+Delete` (Windows), `⌘ ⌦` (macOS), `⌘ ⌦` (IntelliJ IDEA Classic (macOS)), `⌘ ⌦` (macOS System Shortcuts), `Alt+Delete` (XWin), `Alt+Delete` (GNOME), `Alt+Delete` (KDE), `Alt+Delete` (Emacs), `Alt+Delete` (Sublime Text), `⌘ ⌦` (Sublime Text (macOS)), `Alt+Delete` (NetBeans), `Ctrl+R, D` (Visual Studio), `⌘ R, D` (Visual Studio (macOS)), `Alt+Delete` (Eclipse), `Alt+Delete` (Eclipse (macOS))  | Discard the selected profile. |
| ![the Copy button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.copy.svg) | `Ctrl+D` (Windows), `⌘ D` (macOS), `⌘ D` (IntelliJ IDEA Classic (macOS)), `⌘ D` (macOS System Shortcuts), `Ctrl+D` (XWin), `Ctrl+D` (GNOME), `Ctrl+D` (KDE), `Meta+D` (Emacs), `Ctrl+Shift+D` (Sublime Text), `⌘ ⇧ D` (Sublime Text (macOS)), `Ctrl+D` (NetBeans), `Ctrl+D` (Visual Studio), `⌘ D` (Visual Studio (macOS)), `Ctrl+D` (Eclipse), `Ctrl+D` (Eclipse (macOS)) | Open the Copy Copyright Profile dialog, where you can create a copy of the selected profile. |
| ![the Import file](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.import.svg) | Import | Import a file that contains a copyright notice definition. For more information, refer to [Import a copyright profile](copyright.html#import-copyright-profile).  |

> **Tip:**
> You can perform the same actions using context menus of the profile nodes.

## Copyright Profile Page

Use this page to configure the selected profile: define the copyright notice to be generated and specify the keyword to detect copyright notices in comments.

| Item | Description |
| --- | --- |
| Name | Use this text field to view or edit the name of the selected copyright profile. |
| Copyright text (may contain Velocity templates) |    Use this text area to view or edit the copyright notice to be generated. A copyright profile can contain an explicit plain text of the copyright notice or its definition through a [Velocity](http://velocity.apache.org/) template.       Currently, the following variables are available in the Velocity context:     \| Name \| Type \| Comment \| \| --- \| --- \| --- \| \| `$today` \| `DateInfo` \| The current date and time. \| \| `$file.fileName` \| `String` \| The name of the currently opened file where the notice is to be generated. \| \| `$file.pathName` \| `String` \| The complete path and name of the currently opened file where the notice is to be generated. \| \| `$file.className` \| `String` \| The name of the currently opened Java file where the notice is to be generated. \| \| `$file.qualifiedClassName` \| `String` \| The fully qualified name of the currently opened file where the notice is to be generated. \| \| `$file.lastModified` \| `DateInfo` \| The date and time when the current file was last changed. \| \| `$project.name` \| `String` \| The name of the current project. \| \| `$module.name` \| `String` \| The name of the current module. \| \| `$username` \| `String` \| The name of the current user. \| \| `DateInfo` has the following properties: \| \| `year` \| `int` \| The current year. \| \| `month` \| `int` \| The current month (1-12). \| \| `day` \| `int` \| The current date of month (1-31). \| \| `hour` \| `int` \| The current hour (0-11). \| \| `hour24` \| `int` \| The current hour (0-23). \| \| `minute` \| `int` \| The current minute of the hour (0-59). \| \| `second` \| `int` \| The current second of the minute (0-59). \| \| `DateInfo` has the following method: \| \| `format(String format)` \| `String` \| Date and time formats that are specified by [date and time pattern](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html) strings. See java.text.SimpleDateFormat format options. \|     |
| Validate | Click this button to check that the Velocity template has been specified correctly. |
| Regex to detect copyright in comments |    Use this field to type, view, or edit the [regular expression](regular-expressions.html) that will be used to find copyright notices in comments.       Note that this regular expression should match the copyright notice specified above. Otherwise instead of  [updating](null) copyright notices, IntelliJ IDEA will insert new ones.     |
| Allow replacing copyright if old copyright matches |    Use this field to type or edit the regular expression pattern that will be recognized in the existing copyright notice and allow replacing it with the new one. For example, if you specify the following pattern for year indication: `20[0-1][0-6]`, updates will affect all the copyrights with the indications of years 2000-2006 and 2010-2016.      |

## How it works

* [Copyright](copyright.html)

## See also

### Concepts

[Scopes and file colors](configuring-scopes-and-file-colors.html)

### Procedures

[Configure copyright profiles](copyright.html)

