Wednesday, 23 October 2013

Tips for IntelliJ IDEA


Color Themes

Some of my favourite themes are

1. clone intellij-colors-solarized
$ git clone https://github.com/jkaving/intellij-colors-solarized.git
2. Goto File | Import Settings... and specify the intellij-colors-solarized directory
3. Goto Preferences | Editor | Colors & Fonts and select one of the new color themes.




2) Spacegray



3) classic eclipse -
http://color-themes.com/?view=theme&id=563a1a6b80b4acf11273ae67


http://color-themes.com/?view=theme&id=5b491e3c50544f1700232dbc



4) For, Monokai color scheme

5) For Twilight,
wget --directory-prefix=~/.IntelliJIdea13/config/colors/ https://raw.githubusercontent.com/eed3si9n/color-themes/master/IntelliJ-IDEA/Twilight/Twilight.xml


setup auto imports


[2] Editor 
[2.1] Auto scroll from source


OR add ProjectPane=true to ~/.idea/workspace.xml



[2.2] Show line numbers



[2.3] Disable autosave
Goto Settings and search "Synchro", and go to General inside of IDE Settings.




Then, Enable marking modified files with *





Optimize imports on the fly







[3] Keymap
[3.1] Delete a line : C-k from the cursor point (emacs keymap) or C-y in default

C-a C-k to delete a line


[3.2] @Override methods - C-o




[3.3] add a breakpoint - C-f8

[3.4] C Shit f12  http://stackoverflow.com/a/10990239/432903



[3.4] change keymap to emacs



[3.5] column width (<=100)




[4] change file header




Windows/ Buffers 

Switch between multiple intellij windows/projects

C-x o

Switch the buffer

C-x p/n

Kill the buffer

C-x k

Vertical selection

Alt- then drag cursor up or down

[5] Run Main class with app options




References

https://docs.google.com/document/d/1kdUrsjCOIBunzk5OYBojL-58LNguFTLl_KZqNIva3tg/edit#heading=h.bnc6aa9l7gnu

What’s Cool In IntelliJIDEA. Part I, http://refcardz.dzone.com/refcardz/intellij-idea
 ,http://sethmason.com/2007/06/29/ten-keyboard-shortcuts-for-intellij-idea.html
 ,http://arhipov.blogspot.com/2011/06/whats-cool-in-intellijidea-part-i.html
http://stackoverflow.com/a/14495004/432903

http://stackoverflow.com/a/2648361/432903

No comments:

Post a Comment