Last active
February 28, 2023 19:19
-
-
Save lzhoucs/82038dbefa46315bdb54fc5c209c4cfc to your computer and use it in GitHub Desktop.
reset intellij idea 14 evaluation
This file contains 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
#!/bin/bash | |
echo "removing evaluation key" | |
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key | |
# for mac go to: /Users/username/Library/Preferences/IntelliJIdea2016.3/eval/idea163.evaluation.key | |
echo "resetting evalsprt in options.xml" | |
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml | |
# for mac go to: /Users/lzhoucs/Library/Preferences/IntelliJIdea2016.3/options/options.xml | |
echo "resetting evalsprt in prefs.xml" | |
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml | |
# for windows, delete HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea | |
# for mac | |
defaults delete com.apple.java.util.prefs 2> /dev/null | |
for f in ~/Library/Preferences/jetbrains.*.plist; do | |
if [[ -f $f ]]; then | |
fn=${f##*/}; key=${fn%.plist} | |
echo delete $key from pref and file $f | |
defaults delete "${fn%.plist}" 2>/dev/null && rm "$f" | |
fi | |
done | |
# mac reference: | |
# http://osexp2003.blogspot.com/2016/06/jetbrainsintellij-idea-phpstorm.html |
NOT WORK for mac catalina
not working with the latest version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
will it also work for webstorm and phpstorm for mac