VCS | Show Changes View - Local
View | Tool Windows | Changes - Local
The Local tab shows the files that have been modified locally and have not been committed to the repository yet.
In this topic:
|Item||Tooltip and Shortcut||Description|
|Refresh Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RControl F5Command R||
Click this button to refresh the status of files in your workspace.
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 PyCharm and from any other application, for example, right through p4v client.
|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.|
|Revert Ctrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZAlt Command ZAlt Command ZControl Shift Alt Z||Click this button to roll back the selected changes.|
|New Changelist Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter||Click this button to create a new changelist.|
|Delete Changelist DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDelete, Backspace or Command BackspaceDelete, Backspace or Command BackspaceDelete, Backspace or Command Backspace||Click this button to delete the selected changelist. Note that you cannot delete the default changelist.|
|Set Active Changelist||Click this button to make the selected changelist active. The active changelist is highlighted.|
|Move to Another Changelist F6F6F6F6F6F6Ctrl+MShift+Alt+VF6F6Alt Command V||Click this button to move the selected item to another changelist.|
|Show Diff Ctrl+DCtrl+DCtrl+DCtrl+DMeta+DCtrl+DCtrl+D, Ctrl+Shift+Down or Ctrl+Shift+UpCtrl+DCommand DCommand DCommand D||Click this button to show differences between your local version and the latest version in the repository.|
|Ctrl+Shift+Alt+DCtrl+Shift+Alt+DCtrl+Shift+Alt+DCtrl+Shift+Alt+DCtrl+Shift+Alt+DCtrl+Shift+Alt+DCtrl+Shift+Alt+DCtrl+Shift+Alt+DShift Alt Command DShift Alt Command DShift Alt Command D||Use this button to show classes from the selected changelist in a UML Class diagram. See section Viewing Changes as Diagram.|
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
|Click these buttons to expand or collapse all nodes.|
|Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCommand PCommand PCommand P||Click this button to display the changed files grouped by directories. If the button is released, the changed files are grouped by changelists.|
|Ctrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+Insert, Alt+C or Escape, WCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCommand C or Command InsertCommand C or Command InsertCommand C or Command Insert||Click this button to copy the path to the selected file to the Clipboard.|
|Show Ignored Files||Click this button to show Ignored files node with the list of existing files, ignored by VCS.|
|Configure Ignored Files||Click this button to configure the list of files that should be ignored by your version control system.|
|Preview Diff||Click this button to have PyCharm open or close Change Details pane to compare the current file with the latest committed revision.|
|F1F1F1F1F1F1F1F1ContextHelpF1ContextHelp||Click this button to show context reference page.|
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 DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDelete, Backspace or Command BackspaceDelete, Backspace or Command BackspaceDelete, Backspace or Command Backspace, or add them to the VCS by pressing Ctrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+AAlt Command AAlt Command AAlt Command A.
Context menu of a selection
|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.|
|Revert||Ctrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZCtrl+Alt+ZAlt Command ZAlt Command ZControl Shift Alt Z||Select this option to roll back the selected changes.|
|Move to Another Changelist||F6F6F6F6F6F6Ctrl+MShift+Alt+VF6F6Alt Command V||Select this option to move the selected item to another changelist.|
|Show Diff||Ctrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCtrl+DCommand DCommand DCommand D||Select this option to view the differences between your local copy and the latest version in the repository.|
|Jump to Source||F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4F4F3||Select this option to open the selected file(s) in the editor.|
|New Changelist||Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter||
This option is only available if a changelist is selected, not single files.
Select this option to create a new changelist.
|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||Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RControl F5Command R||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:|
|<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 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.
In each area, PyCharm numbers both changes and the lines involved in them.
To close the pane, click the Change Details button once more.