I deleted the vmoptions file, now intelliJ won't open
Answered
I have tried the available solution, which is to write a new .vmoptions file in:
C:\Users\<user>\.IntelliJIdea2019.2\config
and put in the code stated here
After trying this i still get an error
Maybe the code from that solution i found i found is wrong??

Please sign in to leave a comment.
Never mind, went surfing on the web more and finally found a solution.
It worked when i used this code instead:
-server
-Xms128m
-Xmx512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
So as you can see, by removing:
XX:MaxJavaStackTraceDepth=-1
All my problems disappeared :)