By default, PyCharm will save files every time you switch applications. If you want to see which files have not yet been saved, for this you can check the settings in the Settings> Editor> General> Editor Mark modified tabs with asterisk.
source
share