Eclipse shortcut for system.out.println on mac

broken image

This trick works exactly the same, whether you're on a Windows, Mac, or Linux version of Eclipse. Eclipse will magically fill out the full () function call and place your cursor in between the parentheses, so that you can easily type in your desired output. Now just type 'syso', followed by CTRL + SPACE. To use this shortcut, open up the Eclipse editor and navigate to the spot in the file where you would like to place this function.

broken image

Since this is such an important shortcut to know for debugging or writing Java in general, I decided to break it out into its own post. Ever since I wrote a post detailing a few important keyboard shortcuts in Eclipse last summer, I've been getting a surprising amount of search engine traffic all looking for one shortcut in particular: ().