Close files in the editor
Last modified: 21 July 2022PyCharm suggests several ways to close editor tabs.
To close a file in the editor, do one of the following
On the main menu point to Window | Editor Tabs, choose one of the appropriate closing commands.
Right-click any editor tab, and choose same commands from the context menu.
Point with your mouse cursor to a tab and click the middle mouse button.
Point with your mouse cursor to a tab and click
.
Press Ctrl+F4.
tip
When you close modified files, PyCharm preserves all changes in the current editing session. After reopening such files, the results of editing are restored.