IntelliJ

From Null-pointer

Jump to: navigation, search

Contents

VM settings

  • C:\Program Files\JetBrains\IntelliJ IDEA 9.0.2\bin\idea.exe.vmoptions

default

-Xms128m -Xmx512m -XX:MaxPermSize=250m -ea

On a Mac

/Applications/IntelliJ IDEA 10/

  • show contents

/contents/Info.plist

  • Java --> VMOptions [1]

Maven

When running maven with IntelliJ make sure that the MAVAEN_OPTS environment variable is set

  • MAVEN_OPTS = -Xms256m -Xmx512m -Djavax.net.ssl.trustStore=D:\Devapps\Certs\jssecacerts
  • M2 = D:\Devapps\apache-maven-2.2.1\bin
  • M2_HOME = D:\Devapps\apache-maven-2.2.1

alternatively

Setting --> Maven --> Runner

  • VM Parameters

KeyMap

Eclipse function IntelliJ
Ctrl + K find next at caret Ctrl + F3
F3 Go to implementaion/declaration Ctrl + B
Ctrl + H Find in path Ctrl + Shift + F
Ctrl + Shift + T Open type / go to class Ctrl + N
Ctrl + Shift + R Open resource / go to file Ctrl + Shift + N

I've changed from default

Default function Changed to reason
Shift + F6 Rename F2 Everything else uses F2 for rename
Ctrl + Shift + Z Redo Ctrl + Y Everything else uses Ctrl + Y for redo
Ctrl + Y Delete line at caret Ctrl + Shift + D and Ctrl + Delete I made Ctrl + Y become redo; Ctrl + D is duplicate line. Added Ctrl + Delete as Ctrl + Shift + D is awkward for a commmon command
Ctrl + Delete Delete to word end removed removed Ctrl + Delete as I'm using that for delete line; Ctrl + Backspace is Delete to word start
Ctrl + Shift + Backspace Last edit location added Ctrl + #
Subversion -> Show History Alt + H would prefer Win + H, but on a Mac this a global hotkey
Subversion -> Compare with the Same Repository Version Win + L
Subversion -> Compare with the Latest Repository Version Win + D
Subversion -> Rollback alt + R
Win + Q Quit IDE removed Too easy to do

Mac quick list

??????

  • Move caret to next word = alt + right arrow
  • Move caret to next word with select = shift + right arrow
  • Move caret to previous word = alt + left arrow
  • Move caret to previous word with select = shift + left arrow

Change the Tool window shortcuts

Preferences -> Window -> Tool Windows -> Maven projects

  • Add shortcut: Cmd + 2

Commander

  • Remove shortcut

References

  1. "Intellij IDEA Java VM options on Mac, Windows, Linux" Retrieved 21 Feb 2011.
Personal tools