Using PhpStorm 2019 I knew that its internal data is stored under ~/.PhpStorm2019.x
directory.
Sometimes it was useful saying when I lack space on my root partition.
~/.PhpStorm2019.x/system
was one of directories I deleted at first.
Also in case of falling my Kubuntu OS I could copy old ~/.PhpStorm2019.x
into new OS and so I restored my ~/.PhpStorm2019.x
old files of old system.
But are there some system config/cache directories for PhpStorm 2020.1 I did not find.
Can I do similar way I made in 2019 branch?
Yes, since 2020.1 it was moved to adhere the platform guidelines. See https://www.jetbrains.com/help/phpstorm/tuning-the-ide.html#default-dirs
https://www.jetbrains.com/help/phpstorm/tuning-the-ide.html#config-directory
%APPDATA%\JetBrains\<product><version>
# for example:
C:\Users\USERNAME\AppData\Roaming\JetBrains\PhpStorm2021.1
~/.config/JetBrains/<product><version>
# for example:
~/.config/JetBrains/PhpStorm2021.1
~/Library/Application Support/JetBrains/<product><version>
# for example:
~/Library/Application Support/JetBrains/PhpStorm2021.1
https://www.jetbrains.com/help/phpstorm/tuning-the-ide.html#system-directory
Similar paths to the above e.g. ~/.cache/JetBrains/PhpStorm2021.1
for Linux.
P.S. If you install your IDE using JetBrains Toolbox App then the path may differ. In such case better check idea.log
file for the paths used (will be at the start of the session). Use IDE Main Menu | Help | Show Log in XXX
to locate such file.