Last active
May 12, 2022 09:33
-
-
Save FreeWall/5b3a4bb6e00b5d7048055df9c2b45452 to your computer and use it in GitHub Desktop.
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
FOR /F "tokens=*" %%i IN (' dir /b /A %HOMEPATH%\.PhpStorm* ') DO SET PHPSTORM_DIR=%HOMEPATH%\%%i | |
cd %PHPSTORM_DIR% | |
del config\options\other.xml | |
del config\eval\*.evaluation.key | |
reg delete "HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains\phpstorm" /f | |
FOR /F "tokens=*" %%i IN (' dir /b /A %APPDATA%\JetBrains\PhpStorm* ') DO SET PHPSTORM_DIR=%APPDATA%\JetBrains\%%i | |
cd %PHPSTORM_DIR% | |
del options\other.xml | |
del eval\*.evaluation.key | |
pause |
#!/bin/bash
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do
echo "Closing $product"
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9
echo "Resetting trial period for $product"
echo "removing evaluation key..."
rm -rf ~/Library/Preferences/$product*/eval
# Above path not working on latest version. Fixed below
rm -rf ~/Library/Application\ Support/JetBrains/$product*/eval
echo "removing all evlsprt properties in options.xml..."
sed -i '' '/evlsprt/d' ~/Library/Preferences/$product*/options/other.xml
# Above path not working on latest version. Fixed below
sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/$product*/options/other.xml
echo
done
echo "removing additional plist files..."
rm -f ~/Library/Preferences/com.apple.java.util.prefs.plist
rm -f ~/Library/Preferences/com.jetbrains.*.plist
rm -f ~/Library/Preferences/jetbrains.*.*.plist
echo "restarting cfprefsd"
killall cfprefsd
echo
echo "That's it, enjoy ;)"
This is for linux:
#!/bin/bash
for product in PhpStorm; do
echo "Closing $product"
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9
echo "Resetting trial period for $product"
echo "removing evaluation key..."
rm -rf ~/.config/JetBrains/$product*/eval
echo "removing all evlsprt properties in options.xml..."
sed -i '' '/evlsprt/d' ~/.config/JetBrains/$product*/options/other.xml
# Above path not working on latest version. Fixed below
sed -i -E 's/<property name=\"evl.*\".*\/>//' ~/.config/JetBrains/$product*/options/other.xml
sed -i '' '/evlsprt/d' ~/.config/JetBrains/$product*/options/other.xml
echo
done
echo "removing additional plist files..."
rm -rf ~/.java/.userPrefs/jetbrains/phpstorm/
echo "restarting cfprefsd"
killall cfprefsd
echo
echo "That's it, enjoy ;)"
setting moved to %HOMEPATH%/AppData/Roaming/JetBrains/PhpStorm2020.3/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rozšíření pro další Jetbrains IDE: