1、首先安装phpstorm
如地址 https://zhinin.pipipan.com/fs/9490615-326564115
2、下载JetbrainsCrack-3.1-release-enc.jar然后把这个文件放入安装phpstorm/contents/lib目录下
地址:http://idea.lanyus.com/jar/JetbrainsCrack-3.1-release-enc.jar
3、用文本编辑器打开phpstorm/contents/bin/phpstorm.vmoptions在最后一行输入
-javaagent:../lib/JetbrainsCrack-3.1-release-enc.jar,如下图
jar包放到lib下,-javaagent:../lib/JetbrainsCrack-3.1-release-enc.jar写入bin下面的phpstorm.vmoptions文件末尾
-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_phpstorm_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_phpstorm.hprof
-javaagent:../lib/JetbrainsCrack-3.1-release-enc.jar
4、获取注册码
点击:http://idea.lanyus.com
5、重启PHPStorm,将获取的注册码粘贴至Activation Code选项下。