PhpStorm 8.0.2 Web Help

Local Tab

VCS | Show Changes View - Local
View | Tool Windows | Changes - Local
Alt+9

The Local tab shows the files that have been modified locally and have not been committed to the repository yet.

Use this tab to commit and revert changes, manage changelists, view differences, view changes in UML Class diagram, and clean up locked folders.

In this topic:

Toolbar

Item Tooltip and Shortcut Description
refresh Refresh Ctrl+F5
  • When working under Perforce control, click this button to refresh the status of files in your workspace taking into consideration only the changes made through the PhpStorm integration with Perforce. This improves performance because does not require connecting to the server. However, this approach does not let you know about the changes made outside PhpStorm, for example, right through the p4v client application.

    To have all the changes to your workspaces reflected, use Force Refresh.

  • For all version control systems different from Perforce, click this button to have the status of files in your workspace refreshed with regard to all the changes made to them, both from PhpStorm and from any other application.

Click this button to refresh the status of files in your workspace.

perforceChangesToolWindowForceRefresh.png Force Refresh

The button is only available if the Perforce integration is used in the current project.

Click this button to have the status of files in your workspace refreshed with regard to all the changes made to them, both from PhpStorm and from any other application, for example, right through p4v client.

icon_Commit Commit Changes Click this button to check in the selected change or changelist. You can also attach and detach Perforce jobs to changelists via Commit Changes dialog.
rollback.png Revert Ctrl+Alt+Z Click this button to roll back the selected changes.
img New Changelist Alt+Insert Click this button to create a new changelist.
img Delete Changelist Delete Click this button to delete the selected changelist. Note that you cannot delete the default changelist.
img Set Active Changelist Click this button to make the selected changelist active. The active changelist is highlighted.
moveChangelistItems Move to Another Changelist F6 Click this button to move the selected item to another changelist.
img Show Diff Ctrl+D Click this button to show differences between your local version and the latest version in the repository.
icon_UML.png Ctrl+Shift+Alt+D Use this button to show classes from the selected changelist in a UML Class diagram. See section Viewing Changes as Diagram.
expandAll.png collapseAll.png Ctrl+NumPad+
Ctrl+NumPad-
Click these buttons to expand or collapse all nodes.
img Ctrl+P Click this button to display the changed files grouped by directories. If the button is released, the changed files are grouped by changelists.
copy Ctrl+C Click this button to copy the path to the selected file to the Clipboard.
showIgnoredFiles Show Ignored Files Click this button to show Ignored files node with the list of existing files, ignored by VCS.
img Configure Ignored Files Click this button to configure the list of files that should be ignored by your version control system.
previewUsages Preview Diff Click this button to have PhpStorm open or close Change Details pane to compare the current file with the latest committed revision.
img F1 Click this button to show context reference page.

Changelists pane

This pane shows all your changelists, and the files that have been modified in each changelist.

If new files have been added to your project that have not yet been added to a version control system, the Unversioned Files node appears under which all such files are listed. If you have a large number of unversioned files (over 50), they are not displayed in the changelists pane. Instead, the Click to browse link appears. Click this link to open the Unversioned Files dialog to see the list of files that have not been added to a version control system. You can quickly delete unversioned files from the Changelists pane or the Unversioned Files dialog by pressing Delete, or add them to the VCS by pressing Ctrl+Alt+A.

Context menu of a selection

Item Shortcut Description
icon_Commit Commit Changes N/A Select this option to check in the selected file or changelist. You can also attach and detach Perforce jobs to changelists via Commit Changes dialog.
rollbackSVN Revert Ctrl+Alt+Z Select this option to roll back the selected changes.
moveChangelistItems Move to Another Changelist F6 Select this option to move the selected item to another changelist.
icon_showDiff Show Diff Ctrl+D Select this option to view the differences between your local copy and the latest version in the repository.
Jump to Source F4 Select this option to open the selected file(s) in the editor.
add New Changelist Alt+Insert This option is only available if a changelist is selected, not single files.

Select this option to create a new changelist.

deleteChange Delete N/A This option is only available if single files are selected, not a changelist.
Create Patch N/A Select this option to create a patch.
Shelve Changes N/A Select this option to shelve the selected changes.
refresh Refresh Ctrl+F5 Select this option to refresh the status of files in your workspace.
Local History N/A Select this option and choose one of the following from the popup menu:
  • Show History: select this option to View local history of the selected file or folder.
  • Put Label: select this option to add a lable to the current version of the selected file or folder.
<Specific version control system> N/A Select this option to invoke a popup menu with options specific for the version control system you are using.

Change details pane

The pane opens when you click the Change Details button previewUsages  on the toolbar. In this pane, examine the changes made to the selected file compared to the base revision.

The pane consists of two areas:

  • The affected code as it was in the base revision.
  • The affected code as it is after the change is introduced.
The pane can be split horizontally or vertically.

In each area, PhpStorm numbers both changes and the lines involved in them.

To close the pane, click the Change Details button previewUsages once more.

Item Tooltip and Shortcut Description
expandAll.png More/Less Lines Click this button to open a slider and specify the number of lines to be shown above and below the updated code fragment at the caret.
arrowDown.png arrowUp.png Next/previous change Click this button to move to the next/previous updated piece of code.
edit Jump to Source Click this button to open selected file in the editor, with the line in the Change Details pane, where the caret currently rests, having the focus in the editor.
projectToolWindowSettingsIcon.png Settings Click this button to show the list of options that define the appearance of the pane:
  • Top/Bottom: Select this option to have the pane split horizontally, so the base revision is shown in the upper part and the locally updated version is shown in the bottom part of the pane.
  • Left/Right: Select this option to have the pane split vertically, so so the base revision is shown in the left-hand part and the locally updated version is shown in the right-hand part of the pane.
  • Use soft wraps: Select this option to have the soft wraps (or word wraps) used.

See Also

Last modified: 10 December 2014