1. 从官网下载最新版IDE安装, 以GoLand为例

https://www.jetbrains.com/go/download/#section=mac

2. 下载 jetbrains-agent.jar

链接:https://pan.baidu.com/s/1gJ1WbIkgrOVUiDTZGupZ5g 密码:1a54

假如保存为 /Users/yihuaiyuan/jetbrains-agent.jar

3. 打开 goland, 选择 evaluate for free

4. 菜单选择 "Help" -> "Edit Custom VM Options..." 打开

goland01.png

5. 在最后一行加入 -javaagent:

假如上面文件保存的路径为/Users/yihuaiyuan/jetbrains-agent.jar,
在最后一行加上"-javaagent:/Users/yihuaiyuan/jetbrains-agent.jar"

-Xms128m
-Xmx1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf
-Dkotlinx.coroutines.debug=off
-Xverify:none

-XX:ErrorFile=$USER_HOME/java_error_in_goland_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_goland.hprof
 -javaagent:/Users/yihuaiyuan/jetbrains-agent.jar

6. 重启 goland

7. 菜单选择 "Help" -> "Register..."

goland02.png

8. 选择 "Liensen server",输入 " http://jetbrains-license-server" ,点击 Activate 即可

goland03.jpg

jetbrains.png

标签: none

添加新评论