Created
August 31, 2021 02:53
-
Star
(319)
You must be signed in to star a gist -
Fork
(111)
You must be signed in to fork a gist
-
-
Save rjescobar/4b7200d7b2274c029107ca8b9d02f3a3 to your computer and use it in GitHub Desktop.
JetBrains IDE trial reset windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" | |
| reg delete "HKEY_CURRENT_USER\Software\JavaSoft" /f |
working for Arch Linux!!!
#!/bin/bash products=("WebStorm" "IntelliJIdea" "CLion" "Rider" "GoLand" "PhpStorm" "PyCharm") for product in "${products[@]}"; do find ~/.config/JetBrains/ -maxdepth 1 -type d -name "${product}*" -exec rm -rf {}/eval \; find ~/.config/JetBrains/ -maxdepth 1 -type d -name "${product}*" -exec rm -f {}/options/other.xml \; done jetbrains_dirs=( ~/.cache/JetBrains ~/.local/share/JetBrains ~/.java/.userPrefs/jetbrains ~/.java/.userPrefs/prefs.xml ) for dir in "${jetbrains_dirs[@]}"; do if [ -e "$dir" ]; then rm -rf "$dir" fi done find ~/ -type d -name ".JetBrains" -exec rm -rf {} + 2>/dev/null find ~/ -type d -name ".idea" -exec rm -rf {} + 2>/dev/null echo "Activated succesfull"
this works but also uninstalls all your plugins and reset your settings etc.
is there any way to keep plugins and other settings?
maybe not remove all of the cache?
UPDATE: No idea what happened but seems like pycharm is now crashing for some reason
UPDATE: After deleting the entire .config/JetBrains/PyCharm* it's working now
UPDATE: It only works for like one or two time then it crashes again. I think PyCharm is bugged on linuxmint?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does anyone know how to do it on macos?