# Perforce

Procedure: Enable the Perforce plugin

This functionality relies on the [Perforce](https://plugins.jetbrains.com/plugin/69-perforce-p4-helix-core-)  plugin, which  is bundled and enabled in CLion   by default. If the relevant features are not available, make sure that you did not disable the plugin.

1. Press `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)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Plugins`.

2. Open the Installed tab, find the Perforce plugin, and select the checkbox next to the plugin name.

## Before you start

Procedure:

1. Install a Perforce client as described on the [Perforce Official website](https://www.perforce.com/downloads).

2. Create an account with the Perforce depot.

## Start with Perforce in CLion

Procedure:

1. Create a client spec using your Perforce client.

2. Get source files from the Perforce depot using your Perforce client.

3. As soon as the local working copy is on your computer, [associate your local directory with Perforce](enabling-version-control.html).

After that, you will be able to open source files for edit, and perform the usual Perforce-related tasks using CLion.

## Perforce support

* When Perforce integration with CLion is enabled, the `Perforce` option appears in the `VCS` menu, and in the context menus of the editor and Project tool window (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `⌘ 1` (Xcode), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (ReSharper), `⌘ 1` (ReSharper (macOS)), `Alt+X` (QtCreator), `⌃ X` (QtCreator (macOS)), `Ctrl+1` (NetBeans), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) .

* The files in the folders under the Perforce control are highlighted according to their status. See [Check file status](adding-files-to-version-control.html#file_status) for file status highlighting conventions.

* Modifications' results are shown in the Commit tool window (`Alt+0` (Windows), `⌘ 0` (macOS), `⌘ 0` (IntelliJ IDEA Classic (macOS)), `⌘ 0` (macOS System Shortcuts), `Alt+0` (XWin), `Alt+0` (GNOME), `Alt+0` (KDE), `Alt+0` (Emacs), `Alt+0` (Sublime Text), `⌘ 0` (Sublime Text (macOS)), `⌘ 0` (Xcode), `Alt+0` (Visual Studio), `Alt+0` (Visual Studio (macOS)), `Alt+0` (ReSharper), `Alt+0` (ReSharper (macOS)), `Alt+0` (QtCreator), `⌘ 0` (QtCreator (macOS)), `Alt+0` (NetBeans), `Alt+0` (Eclipse), `⌘ 0` (Eclipse (macOS)) ) .

* When using Perforce integration, it is helpful to open the Console tab of the Perforce tool window `Alt+9` (Windows), `⌘ 9` (macOS), `⌘ 9` (IntelliJ IDEA Classic (macOS)), `⌘ 9` (macOS System Shortcuts), `Alt+9` (XWin), `Alt+9` (GNOME), `Alt+9` (KDE), `Alt+9` (Emacs), `Alt+9` (Sublime Text), `⌘ 9` (Sublime Text (macOS)), `⌘ 2` (Xcode), `Alt+9` (Visual Studio), `⌘ 9` (Visual Studio (macOS)), `Alt+9` (ReSharper), `⌘ 9` (ReSharper (macOS)), `Alt+9` (QtCreator), `⌘ 9` (QtCreator (macOS)), `Alt+9` (NetBeans), `Alt+9` (Eclipse), `⌘ 9` (Eclipse (macOS)) , which displays the following data: * All commands that are generated based on the settings you specify through the CLion user interface. * Information messages concerning the results of executing generated Perforce commands. * Error messages.

## See also

### Reference

[Perforce Options dialog](perforce-options-dialog.html)

### External Links

[http://www.perforce.com/perforce/doc.073/manuals/p4guide/index.html](http://www.perforce.com/perforce/doc.073/manuals/p4guide/index.html)

