Saturday, January 7, 2012

Start applications with the default app from console

Its as simple as. Add this to your ~/.bashrc
alias open='nohup xdg-open >/dev/null 2>&1'
 Now you can start, for example a textfile, like this "open textfile.txt". Because of nohop in the alias you can even close the console session and the text editor stays open.

Wednesday, January 4, 2012

Eclipse shortcuts

Ctrl + d = delete line
Alt + up = current line up
Ctrl + Alt + Up = Copy current line
F3 = open declaration
Ctrl + shift + G = Find all references
Ctrl + 1 = Quick fix popup
Ctrl + i = fixes indent
Alt + shift + R = rename variable

Ctrl + shift + f = format code

"syso" & Ctrl + space = System.out.println("");
"main" & Ctrl + space = public static void main(String[] args){}