Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eramax/2d94c5916d3ff06cf48b7ec02049dd00 to your computer and use it in GitHub Desktop.
Save eramax/2d94c5916d3ff06cf48b7ec02049dd00 to your computer and use it in GitHub Desktop.
JetBrains IDE trial reset windows
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
@eramax
Copy link
Author

eramax commented Jul 9, 2020

#!/bin/sh
# reset jetbrains ide evals

OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"

for PRD in $JB_PRODUCTS; do
	rm -rf ~/.java/.userPrefs/prefs.xml
	rm -rf ~/.java/.userPrefs/jetbrains/prefs.xml
	rm -rf ~/.config/JetBrains/${PRD}*/eval/
	rm -rf ~/.config/JetBrains/${PRD}*/options/other.xml
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment