File | Settings | Version Control | TFS
The dialog box opens when you select an entry in the Server/Workspace list and click the Check-in Policies button in the Manage TFS Servers and Workspaces dialog box.
A check-in policy is a rule that is executed before every check-in to ensure that the selected changeset is OK to commit. Standard policies are stored on the server and are executed on the client machines.
Custom policies are implemented as custom plugins to PhpStorm. The IDs of these plugins are stored on the server, while the policies themselves are applied locally. Therefore, to enable the use of a policy in a team, all the team members should install the corresponding plugin.
Use this dialog box to manage the list of the custom project policies to be applied when checking in to the selected workspace and to override the default PhpStorm-wide policies for the project, if necessary.
In this section:
|Team Project||From this drop-down list, select the name of the project to specify the policies for.|
|Policy Type||This read-only field shows the available policies.|
|Description||This read-only field shows brief descriptions of policies.|
|Enabled||When this check box is selected, the policy next to it is mandatory during check-in.|
|Add||Click this button to open the Add Check-in Policy dialog box where you can define a new check-in policy.|
|Edit||Click this button to open the Edit Check-in Policy dialog box where you can re-define the selected check-in policy.|
|Remove||Click this button to remove the selected check-in policy from the list.|
Use the controls in this area to suppress applying the default PhpStorm-wide check-in policy settings to the current project.
|Override default settings for team project <project name>||
Select the check box to discard the default policy settings within the scope of the current project and re-define the settings by selecting or clearing the corresponding check boxes below.