I am new to PyCharm and am trying to figure out when it saves my files. There is no indicator (like in Notepad++ for example) showing that the file has been modified. How do I tell when it has been saved vs modified?
PyCharm automatically saves changes that you make in your files. Saving is triggered by various events, such as compiling, running, debugging, performing version control operations, closing a file or a project, or quitting the IDE.
By default, PyCharm stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.
In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Appearance & Behavior | System Settings. Under Autosave, configure the following options: Save files when switching to a different application or a built-in terminal: Save all modified files when you switch from IntelliJ IDEA to a different application.
Fortunately PyCharm makes it easy to undo the commit if it hasn't yet been pushed. Go to the Version Control tool window and click on the Log tab. Then right-click on the commit and choose Undo from the context menu. The changes in that commit need to go "somewhere." In PyCharm, that "somewhere" is called a changelist.
By default PyCharm will save files whenever you switch apps. If you want to see which files it hasn't saved yet, there is a config options for this under "Settings" -> "Editor" -> "General" -> "Editor Tabs" you can check the "Mark modified (*)" option.
Below you can find a screenshot of the setting taken in PyCharm 2020.2:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With