Optimal IntelliJ IDEA vmoptions settings

Set the <idea installation dir>\bin\idea.exe.vmoptions to:

-Xms256m
-Xmx1024m
-XX:MaxPermSize=512m
-ea
-server

Just in case you cant get it to work because an error is displaying everytime you start IDEA.  “JVM not started…”

Use the idea.bat to start it.

edit the batch file in this line:

IF “%IDEA_JDK%” == “” SET IDEA_JDK=%JAVA_HOME%

This points to the correct JAVA_HOME installation dir.

 

If you have D: drive, edit also caching in the idea.properties

idea.system.path=D:/Temp/idea8/system

 

Hope this helps

Granting ALL permission to Java Applets

Insert this:

permission java.security.AllPermission;

into C:\Program Files\Java\jdk1.6.0_16\jre\lib\security\java.policy and C:\Program Files\Java\jre6\lib\security\java.policy after this line:

// Standard extensions get all permissions by default

grant codeBase “file:${{java.ext.dirs}}/*” {
permission java.security.AllPermission;
};

// default permissions granted to all domains

grant {

 

IntelliJ IDEA 8 Shortcuts

IntelliJ IDEA 8 Productivity tips

Code completion

  • Smart type completion (ctrl + shift + space)
  • Basic completion (ctrl + space)
  • Replace by code completion (when in code completion, just select and tab)
  • Class name completion (ctrl + alt + space)
  • Complete statement (ctrl + shift + enter)
Code assistants
  • Comment / uncomment by // (ctrl + /)
  • Comment / uncomment by /**/ (ctrl + shift + /)
  • Override methods (ctrl + o)
  • Implement methods (ctrl + I)
  • Show quick javadoc (ctrl + q)
  • show parameter info (ctrl + p)
  • go to declaration (ctrl + b)
  • external javadoc (shift + f1)
Code template
  • try / catch (ctrl + t)
Code editing
  • select word and highlight (ctrl + w)
  • incremental search (alt + f3) or (ctrl + f)
Code navigation
  • Go to java class (ctrl + n)
  • Go to non-java class (ctrl + shift + n)
  • Go to implementation (ctrl + alt + b)
  • Go to symbol (class, method or field) (ctrl + alt + shift + n)
  • Go to declaration (ctrl + b)
  • recent files popup (ctrl + e)
  • quick select in popup (for open files) (alt + f1)
  • file structure popup (ctrl + f12)
  • use camel case when searching from classes
  • find in path (ctrl + shift + f)