<p>Alright it can be a lame question, but everybody uses these things differently.  What's some of the best time savers out there for this IDE.
<BR><BR>Tom</p>

[{'answer_id': 54894, 'author': 'Jay R.', 'author_id': 5074, 'author_profile': 'https://Stackoverflow.com/users/5074', 'pm_score': 6, 'selected': False, 'text': '<p><kbd>Crtl</kbd>+<kbd>1</kbd> is my favorite.   The quick fixes for the red-squiggles.</p>\n\n<p>It is also located in the Edit Menu -> Quick Fix.</p>\n'}, {'answer_id': 54905, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 2, 'selected': False, 'text': '<p>Ctrl+f then tick the "Regular expressions" checkbox.  From that, you can search with regular expressions, but even more powerfully, you can include group matches in your replacement string ($1, $2, etc, or $0 for the whole match).</p>\n'}, {'answer_id': 54913, 'author': 'Ryan Guest', 'author_id': 1811, 'author_profile': 'https://Stackoverflow.com/users/1811', 'pm_score': 3, 'selected': False, 'text': '<p><kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd> to refactor and rename.</p>\n'}, {'answer_id': 54920, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 6, 'selected': False, 'text': '<p><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>O</kbd> to organize imports, which will format them nicely, remove unneeded imports, and add missing imports.</p>\n'}, {'answer_id': 54930, 'author': 'pkaeding', 'author_id': 4257, 'author_profile': 'https://Stackoverflow.com/users/4257', 'pm_score': 6, 'selected': False, 'text': '<p>ctrl-shift-r and its buddy, ctrl-shift-t, to open a resource or type, respectively.  Resources includes all files in your open projects (including non-java files), and types includes java types either in your projects, or in a library included in the projects.</p>\n'}, {'answer_id': 54985, 'author': 'Boris Terzic', 'author_id': 1996, 'author_profile': 'https://Stackoverflow.com/users/1996', 'pm_score': 5, 'selected': False, 'text': '<ul>\n<li>CTRL-SHIFT-g : finds usages of the method or field under the cursor, absolutely necessary for understanding code</li>\n<li>CTRL-F6 : navigate between the list of open editor windows, if you just type it once and let go you toggle back to the previous editor window, doing this successively is a nice way to jump back and forth</li>\n<li>CTRL-t : on a class or method will show you the type hierarchy, very useful for finding implementations of an interface method for example</li>\n</ul>\n'}, {'answer_id': 54992, 'author': 'nutario', 'author_id': 5334, 'author_profile': 'https://Stackoverflow.com/users/5334', 'pm_score': 0, 'selected': False, 'text': '<p>CTRL + b: to build the project under c++</p>\n\n<p>CTRL + SHIFT + f: to format your code (c++)</p>\n'}, {'answer_id': 55005, 'author': 'jodonnell', 'author_id': 4223, 'author_profile': 'https://Stackoverflow.com/users/4223', 'pm_score': 4, 'selected': False, 'text': '<p><kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>Up</kbd> Arrow does escalating selection. <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>Down</kbd> does the opposite.</p>\n'}, {'answer_id': 55067, 'author': 'svrist', 'author_id': 86, 'author_profile': 'https://Stackoverflow.com/users/86', 'pm_score': 2, 'selected': False, 'text': '<p>Save Actions rocks. There you can get your Imports organized (Ctrl+Shift+o) and formatting of code (CTRL + SHIFT + f). Besides from that i love ALt + Shift + R for refactoring.</p>\n\n<p>My favorite things is the plugins though:\n They might cause you to use more time but most of the time they give quality (subjective I know)  </p>\n\n<ul>\n<li>Code coveragde (ECLEMMA)</li>\n<li>Static analysis on source(PMD)</li>\n<li>Static analysis on byte code(FindBugs)</li>\n<li>CheckStyle</li>\n<li>SpringIDE.</li>\n</ul>\n\n<p>Then you start to rock with the mandatory source control plugins and the maven 2 plugin. </p>\n\n<p>Rock on!</p>\n'}, {'answer_id': 55334, 'author': 'erickson', 'author_id': 3474, 'author_profile': 'https://Stackoverflow.com/users/3474', 'pm_score': 5, 'selected': False, 'text': '<p>Alt-Up Arrow moves the current selection up a line, Alt-Down Arrow moves it down. I also use Alt-Shift-Up/Down Arrow all the time. Ctrl-K and Ctrl-Shift-K is quite handy, finding next/previous occurrence of the current selection (or the last Find, if nothing is selected).</p>\n'}, {'answer_id': 55761, 'author': 'Kevin Wong', 'author_id': 4792, 'author_profile': 'https://Stackoverflow.com/users/4792', 'pm_score': 3, 'selected': False, 'text': '<p><kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>UP</kbd> or <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>DOWN</kbd> to copy lines</p>\n'}, {'answer_id': 55763, 'author': 'Kevin Wong', 'author_id': 4792, 'author_profile': 'https://Stackoverflow.com/users/4792', 'pm_score': 4, 'selected': False, 'text': '<p><kbd>Alt</kbd>+<kbd>Up</kbd> or <kbd>Alt</kbd>+<kbd>Down</kbd> to move lines</p>\n'}, {'answer_id': 55780, 'author': 'Jan Gorman', 'author_id': 3196, 'author_profile': 'https://Stackoverflow.com/users/3196', 'pm_score': 1, 'selected': False, 'text': '<p>Ctrl+Shift+Enter to move the current line down by one and start typing above it.<br>\nCtrl+Shift+X to capitalize the current selection, Ctrl-Shift-Y to change it lowercase.<br>\nCtrl+. Autocompletes the current word. This works for variables as well as strings (which is a huge timesaver for array keys, for example)</p>\n'}, {'answer_id': 56394, 'author': 'Ben', 'author_id': 1417, 'author_profile': 'https://Stackoverflow.com/users/1417', 'pm_score': 7, 'selected': False, 'text': "<p>Don't forget <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>L</kbd>, which displays a list of all the keyboard shortcut combinations (just in case you forget any of those listed here).</p>\n"}, {'answer_id': 56461, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>If you want to put a System.out.println("anything"); to your code you can simply do as follows:\nOnly write ", then mark the "" and press Crtl-Space Up-Arrow and enter (you should land on "sysout").</p>\n\n<p>Voila, there it is :)</p>\n'}, {'answer_id': 56861, 'author': 'warsze', 'author_id': 4968, 'author_profile': 'https://Stackoverflow.com/users/4968', 'pm_score': 0, 'selected': False, 'text': '<p>Of course all these shortcuts are available in the menus but who has time for that when you\'re in the "zone".</p>\n\n<p>I like the code hot swapping.</p>\n'}, {'answer_id': 58334, 'author': 'RodeoClown', 'author_id': 943, 'author_profile': 'https://Stackoverflow.com/users/943', 'pm_score': 6, 'selected': False, 'text': '<p>Ctrl-J starts an incremental find.</p>\n\n<p>Hit Ctrl-J, then start typing. Use up/down to find previous/next instances of what you typed.</p>\n\n<p>Ctrl-Shift-J searches backwards.</p>\n'}, {'answer_id': 58336, 'author': 'RodeoClown', 'author_id': 943, 'author_profile': 'https://Stackoverflow.com/users/943', 'pm_score': 3, 'selected': False, 'text': '<p><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>L</kbd> will show you all the currently available keyboard shortcuts</p>\n'}, {'answer_id': 58341, 'author': 'RodeoClown', 'author_id': 943, 'author_profile': 'https://Stackoverflow.com/users/943', 'pm_score': 3, 'selected': False, 'text': '<p>A non-keyboard shortcut trick is to use commit sets in your Team->Synchronise view to organise your changes before committing.</p>\n\n<p>Set a change set to be the default, and all changes you make on files will be put in that set, making it easy to see what you have changed while working on a specific defect/feature, and other changes you had while testing etc.</p>\n'}, {'answer_id': 58360, 'author': 'timbonicus', 'author_id': 99021, 'author_profile': 'https://Stackoverflow.com/users/99021', 'pm_score': 4, 'selected': False, 'text': '<p><kbd>F3</kbd> has been my favorite, opens the definition for the selected item. </p>\n\n<p><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd> has an interesting feature, you can use just the uppercase camel letters from a class when searching (such as typing CWAR will show a result for ClassWithAReallyLongName).</p>\n\n<p><kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>W</kbd> > Package Explorer makes life easier when browsing large projects.</p>\n'}, {'answer_id': 58665, 'author': 'awi', 'author_id': 1835074, 'author_profile': 'https://Stackoverflow.com/users/1835074', 'pm_score': 4, 'selected': False, 'text': '<p>Hippie expand/Word Complete, afaik inspired by Emacs: will autocomplete any word in any editor based on other words in that file. Autocomplete inside String literals in Java code, in xml files, everywhere.</p>\n\n<p><kbd>Alt</kbd> + <kbd>/</kbd></p>\n'}, {'answer_id': 58859, 'author': 'Claes Mogren', 'author_id': 4992, 'author_profile': 'https://Stackoverflow.com/users/4992', 'pm_score': 3, 'selected': False, 'text': '<p><kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>H</kbd> on a method to get the call hierarchy for it. Fast way to see where it is called from.</p>\n'}, {'answer_id': 59413, 'author': 'Antti Kissaniemi', 'author_id': 2948, 'author_profile': 'https://Stackoverflow.com/users/2948', 'pm_score': 4, 'selected': False, 'text': '<p><strong>Alt-Shift-R</strong> stands for <em>rename</em>, not refactor. Refactoring is a <a href="http://en.wikipedia.org/wiki/Refactoring" rel="noreferrer">more general term</a> (as defined by <a href="https://rads.stackoverflow.com/amzn/click/com/0201485672" rel="noreferrer" rel="nofollow noreferrer">the book</a>).</p>\n\n<p>Nevertheless, it is one of my favorite refactorings. Others include:</p>\n\n<ul>\n<li><p><strong>Alt-Shift-M</strong>: <a href="http://www.refactoring.com/catalog/extractMethod.html" rel="noreferrer">Extract Method</a> (when a code block or an expression is selected)</p></li>\n<li><p><strong>Alt-Shift-L</strong>: <a href="http://www.refactoring.com/catalog/introduceExplainingVariable.html" rel="noreferrer">Extract Local Variable</a> (when an expression is selected)</p></li>\n</ul>\n\n<p>Extract Local Variable is especially useful when I don\'t remember (or bother to type) the result type of a method. Assuming you have a method <code>JdbcTemplate createJdbcTemplate()</code> in your class, write some code such as this:</p>\n\n<pre><code>void someQuery() {\n    createJdbcTemplate()\n}\n</code></pre>\n\n<p>Select the expression <code>createJdbcTemplate()</code>, click Alt-Shift-L, type the name of variable and press enter.</p>\n\n<pre><code>void someQuery() {\n    JdbcTemplate myTemplate = createJdbcTemplate();\n}\n</code></pre>\n'}, {'answer_id': 59799, 'author': 'yalestar', 'author_id': 2177, 'author_profile': 'https://Stackoverflow.com/users/2177', 'pm_score': 5, 'selected': False, 'text': '<p><kbd>CTRL</kbd>+<kbd>3</kbd> brings up a type-ahead list of any menu command. </p>\n'}, {'answer_id': 69718, 'author': 'MetroidFan2002', 'author_id': 8026, 'author_profile': 'https://Stackoverflow.com/users/8026', 'pm_score': 3, 'selected': False, 'text': "<p>CTRL+SPACE, for anything, anywhere.</p>\n\n<p>Generate getters and setters.</p>\n\n<p>Create Constructors using Fields</p>\n\n<p>Extract Method...</p>\n\n<p>Refactor->Rename</p>\n\n<p>CTRL+O for the quick outline.  CTRL+O+CTRL+O for the inherited outline.</p>\n\n<p>F4 to display a type hierarchy</p>\n\n<p>Open Call Hierarchy to display where a method is called from.</p>\n\n<p>CTRL+SHIFT+T to open a Java Type</p>\n\n<p>CTRL+SHIFT+R to open any resource.</p>\n\n<p>ALT + left or right to go forward or backwards through edit places in your documents (easy navigation)</p>\n\n<p>Override/Implement methods if you know you're going to do a lot of methods (otherwise, CTRL+SPACE is better for one at a time selection.</p>\n\n<p>Refactor->Extract Interface</p>\n\n<p>Refactor->Pull up</p>\n\n<p>Refactor->Push down</p>\n\n<p>CTRL+SHIFT+O for organize imports (when typing the general class name such as Map, pressing CTRL+SPACE and then selecting the appropriate class will import it directly for you).</p>\n\n<p>CTRL+SHIFT+F for formatting (although Eclipse's built in formatter can be a little braindead for long lines of code)</p>\n\n<p>EDIT: Oh yeah, some debugging:</p>\n\n<p>F5: Step into (show me the details!)</p>\n\n<p>F6: Step over (I believe you, on to the next part...)</p>\n\n<p>F7: Step out (I thought I cared about this method, but it turns out I don't, get me out of here!)</p>\n\n<p>F8: Resume (go until the next breakpoint is reached)</p>\n\n<p>CTRL+SHIFT+I: inspect an expression.  CTRL+SHIFT+I+CTRL+SHIFT+I: create a watch expression on the inspected expression.</p>\n\n<p>Conditional breakpoints: Right click a breakpoint and you may set a condition that occurs which triggers its breaking the execution of the program (context assist, with Ctrl+Space, is available here!)</p>\n\n<p>F11 - Debug last launched (application)</p>\n\n<p>CTRL+F11 - Run last launched (application)</p>\n"}, {'answer_id': 70719, 'author': 'izb', 'author_id': 974, 'author_profile': 'https://Stackoverflow.com/users/974', 'pm_score': 5, 'selected': False, 'text': "<p>Type 'syso' then press <kbd>Ctrl</kbd>+<kbd>Space</kbd> to expand it to System.out.println().</p>\n\n<p>Tres handy.</p>\n"}, {'answer_id': 96109, 'author': 'Jim Garrison', 'author_id': 18157, 'author_profile': 'https://Stackoverflow.com/users/18157', 'pm_score': 4, 'selected': False, 'text': "<p>Nobody's mentioned the best one yet.  Click on a class or method name and press <kbd>Ctrl</kbd>+<kbd>T</kbd>.</p>\n\n<p>You get a quick type hierarchy.  For a class name you see the entire class hierarchy.  For a method name you get the hierarchy showing superclasses and subclasses, with implementations of that method distinguished from abstract mentions, or classes that don't mention the method.</p>\n\n<p>This is huge when you are at an abstract method declaration and quickly want to see where it is implemented.</p>\n"}, {'answer_id': 99003, 'author': 'j.davies', 'author_id': 18445, 'author_profile': 'https://Stackoverflow.com/users/18445', 'pm_score': 1, 'selected': False, 'text': '<p>When debugging I find the "Display" view really useful. It lets you type code (using auto complete) and lets you run/display the outcome of whatever you write.</p>\n\n<p>Give it a try!</p>\n'}, {'answer_id': 104569, 'author': 'Olaf Kock', 'author_id': 13447, 'author_profile': 'https://Stackoverflow.com/users/13447', 'pm_score': 5, 'selected': False, 'text': '<p>There\'s an option to place the opening curly brace and a semicolon automagically in the "correct" position. You\'ll have to enable this - Choose Window/Preferences and type "brace" in the searchbox - should be easily findable (no eclipse on this computer). The effect: </p>\n\n<ul>\n<li>Typing a semicolon anywhere on the line will place it at this lines end (as in word/openoffice: Backspace if you\'d like to have it in the original place)</li>\n<li>Typing an opening curly brace when you\'re just inside another pair of braces will place it at the end of this line - as in this example</li>\n</ul>\n\n<p>("|" is the cursor):</p>\n\n<pre><code>if(i==0|)\n</code></pre>\n\n<p>typing "{" now will result in</p>\n\n<pre><code>if(i==0) {|\n</code></pre>\n'}, {'answer_id': 116765, 'author': 'Matt', 'author_id': 20630, 'author_profile': 'https://Stackoverflow.com/users/20630', 'pm_score': 2, 'selected': False, 'text': '<p>ctrl + O is an popup outline view that lets you start typing to filter on a name</p>\n\n<p>Ctrl + F3 works similarly, but it can open other types\' outlines based on where your cursor is.</p>\n\n<p>Turn on the Save Action to clean up your code and it will be automatically formatted and import optimized every time you save.  To easily get to this option choose "Windows|Preferences" start type "Save Act" in the filter box and turn on the option.</p>\n\n<p>In the new 3.4 release, turn on the "Breadcrumb trail" at the top of the editor window.  There\'s a new toolbar button for this.</p>\n'}, {'answer_id': 133850, 'author': 'Kevin Wong', 'author_id': 4792, 'author_profile': 'https://Stackoverflow.com/users/4792', 'pm_score': 5, 'selected': False, 'text': "<p>Code completion supports CamelCase, e.g., typing <code>CWAR</code> will show a result for <code>ClassWithAReallyLongName</code>.  Start using this feature and you'll never type another long classname again.</p>\n\n<p>(parts copied from another answer because i think answers w/ just one hint/tip are best for polling)</p>\n"}, {'answer_id': 175254, 'author': 'mayya', 'author_id': 23984, 'author_profile': 'https://Stackoverflow.com/users/23984', 'pm_score': 1, 'selected': False, 'text': '<p>Quick Assist: Ctrl + 2, followed by F (assign to field), L(assign to local variable) and R (rename in file)</p>\n\n<p>Last edit location: Ctrl+Q</p>\n\n<p>Check out this article: <a href="http://dmy999.com/article/29/using-eclipse-efficiently" rel="nofollow noreferrer">http://dmy999.com/article/29/using-eclipse-efficiently</a></p>\n'}, {'answer_id': 199513, 'author': 'javamonkey79', 'author_id': 27657, 'author_profile': 'https://Stackoverflow.com/users/27657', 'pm_score': 0, 'selected': False, 'text': "<p>Of course if you can't find the binding you are looking for, or don't like the current binding Window -> Preferences -> General -> Keys will allow you to change, add &amp; delete the mappings of your key combo's.</p>\n"}, {'answer_id': 199535, 'author': 'abarax', 'author_id': 24390, 'author_profile': 'https://Stackoverflow.com/users/24390', 'pm_score': 1, 'selected': False, 'text': '<p>ALT+Shift+X + T </p>\n\n<p>This will run your current file as a unit test.</p>\n'}, {'answer_id': 202045, 'author': 'marko', 'author_id': 13114, 'author_profile': 'https://Stackoverflow.com/users/13114', 'pm_score': 4, 'selected': False, 'text': '<p><kbd>CTRL</kbd> + <kbd>D</kbd> - to delete current line</p>\n'}, {'answer_id': 202070, 'author': 'iny', 'author_id': 27067, 'author_profile': 'https://Stackoverflow.com/users/27067', 'pm_score': 1, 'selected': False, 'text': '<p>Ctrl-1 to convert if to conditional expression and back, split an assignment or join it back or do other such small manipulations. There is a list of these in the help.</p>\n'}, {'answer_id': 225883, 'author': 'chillysapien', 'author_id': 30297, 'author_profile': 'https://Stackoverflow.com/users/30297', 'pm_score': 2, 'selected': False, 'text': '<p>ctrl-alt-up/down to copy a line up (or down). That followed by alt-up/down is often much quicker than a copy-paste</p>\n'}, {'answer_id': 225891, 'author': 'chillysapien', 'author_id': 30297, 'author_profile': 'https://Stackoverflow.com/users/30297', 'pm_score': 2, 'selected': False, 'text': '<p>Don\'t know a keyboard shortcut to it, but select a local variable in a method, and then right click. Under refactor is "convert local variable to field". Very useful on occasions. Just wish there was a shortcut for it!</p>\n'}, {'answer_id': 403716, 'author': 'Slayer SA', 'author_id': 1253451, 'author_profile': 'https://Stackoverflow.com/users/1253451', 'pm_score': 3, 'selected': False, 'text': '<p>Ctrl-Alt-h To open the Call hierarchy of the selected method.</p>\n\n<p>Really useful on large codebases or unknown codebases</p>\n'}, {'answer_id': 548271, 'author': 'Ascalonian', 'author_id': 65230, 'author_profile': 'https://Stackoverflow.com/users/65230', 'pm_score': 1, 'selected': False, 'text': '<p>Depending on what time saver means to you...</p>\n\n<p>Adding TODO and FIXME in a comment automatically adds a task to the task list in Eclipse.\nSo if there is code you want to come back to, say you were debugging and need to do some research, you can do...</p>\n\n<p>FIXME means it is urgent, which puts a red ! in the task window<br>\nTODO is normal urgency</p>\n\n<pre><code>//FIXME: This accidentally deletes user accounts\nuser.account().delete();\n\n//TODO: Add some validation before assigning everyone as admin\nuser.setPrivilege("Admin");\n</code></pre>\n\n<p>And then there are the setters/getters automatically being built. This is great if you are creating a bean or something. Say you have declared a class such as:</p>\n\n<pre><code>public class SomeBean {\n    private static int FIRST_VALUE = 0;\n    private static int SECOND_VALUE = 1;\n    ...\n    private static int THOUSANDTH_VALUE = 1000;\n}\n</code></pre>\n\n<p>You can create all the variables, then right-click in the editor, go to Source and then pick Generate Setters &amp; Getters. This will automatically create them for you. </p>\n'}, {'answer_id': 550361, 'author': 'serg', 'author_id': 20128, 'author_profile': 'https://Stackoverflow.com/users/20128', 'pm_score': 0, 'selected': False, 'text': '<p>If you build your project with Ant you can assign a shortcut to "Runs the last launched external Tool" like Ctrl+Enter and it will repeat your last build. It is much easier than  standard Alt+Shift+X,Q also it helps with a bug in the latest Eclipse that cannot find an ant build file in the project.</p>\n'}, {'answer_id': 591345, 'author': 'VonC', 'author_id': 6309, 'author_profile': 'https://Stackoverflow.com/users/6309', 'pm_score': 3, 'selected': False, 'text': '<p><strong><a href="http://blogs.bytecode.com.au/glen/2007/04/06/eclipse-tip--breakpoint-on-exception.html">Breakpoint on Exception</a></strong></p>\n\n<p>Eclipse let you set breakpoints based on where an Exception occurs.<br>\nYou access the option via the <strong>"j!"</strong> <a href="http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.user/images/org.eclipse.jdt.debug.ui/elcl16/exc_catch.png">alt text http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.user/images/org.eclipse.jdt.debug.ui/elcl16/exc_catch.png</a> icon in the debugging window.</p>\n\n<p><a href="http://blogs.bytecode.com.au/glen/2007/04/06/images/2007/AddExceptionWindow.png">alt text http://blogs.bytecode.com.au/glen/2007/04/06/images/2007/AddExceptionWindow.png</a></p>\n\n<p>The official help topic "<strong><a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/views/breakpoints/ref-addexception_viewaction.htm">Add Java Exception Breakpoint </a></strong>" has more on this.</p>\n\n<ul>\n<li>The Uncaught Exception option is to suspend execution when an exception of the same type as the breakpoint is thrown in an uncaught location.</li>\n<li>The Caught Exception option is to suspend execution when an exception of the same type as the breakpoint is thrown in a caught location. </li>\n<li>do not forget the <strong><a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/breakpoints/ref-suspendsubclass_option.htm">Exception Breakpoint Suspend on Subclass of this Exception</a></strong>:<br>\nto suspend execution when subclasses of the exception type are encountered.<br>\nFor example, <strong>if an exception breakpoint for <code>RuntimeException</code> is configured to suspend on subclasses, it will also be triggered by a <code>NullPointerException</code></strong>.</li>\n</ul>\n\n<p><a href="http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.user/reference/breakpoints/images/ref-breakpoint_suspendsubclass.PNG">alt text http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.user/reference/breakpoints/images/ref-breakpoint_suspendsubclass.PNG</a></p>\n'}, {'answer_id': 593725, 'author': 'zvikico', 'author_id': 2823, 'author_profile': 'https://Stackoverflow.com/users/2823', 'pm_score': 0, 'selected': False, 'text': '<p>I\'m really biased and this is blatant advertising... </p>\n\n<p>Still, I think my new Eclipse plugin, <a href="http://www.nwiresoftware.com/" rel="nofollow noreferrer">nWire</a>, is the best time saver you can get for Eclipse. I developed it after years of working with Eclipse, I just came to the conclusion that I need one tool to show me all the associations of my code instead of learning different tools and views. </p>\n\n<p>Check out <a href="http://www.nwiresoftware.com/" rel="nofollow noreferrer">the demo on my web site</a>.  </p>\n'}, {'answer_id': 593745, 'author': 'banjollity', 'author_id': 29620, 'author_profile': 'https://Stackoverflow.com/users/29620', 'pm_score': 3, 'selected': False, 'text': "<p><strong>Ctrl+,</strong> and <strong>Ctrl+.</strong> move the text cursor to the next and previous error or warning (red or yellow squiggle) in the source. This gets really useful if you're dealing with a big block of dirty or broken code when you're in the depths of refactoring or pasting. Combined with <strong>Ctrl+1</strong> for suggest fix you can quickly repair the code without having to move your hand to the mouse. </p>\n\n<p>In fact, you barely have to lift your finger off Ctrl...</p>\n"}, {'answer_id': 595376, 'author': 'grayger', 'author_id': 433078, 'author_profile': 'https://Stackoverflow.com/users/433078', 'pm_score': 4, 'selected': False, 'text': '<p>Absolutely, <kbd>Ctrl</kbd>+<kbd>Q</kbd> to go to last edit location.\nIt is very useful just after being interrupted by phone, boss or others.</p>\n'}, {'answer_id': 595453, 'author': 'david a.', 'author_id': 44355, 'author_profile': 'https://Stackoverflow.com/users/44355', 'pm_score': 2, 'selected': False, 'text': '<p>Ctrl-Shift- Up or Down in Java editor jumps to to nearest declaration of a method or a field in that direction. </p>\n'}, {'answer_id': 602021, 'author': 'jtgameover', 'author_id': 65927, 'author_profile': 'https://Stackoverflow.com/users/65927', 'pm_score': 3, 'selected': False, 'text': "<p>A hidden gem is the conditional breakpoint. <strong>Really</strong> useful for skipping over portions of loops, pausing if something is null or meets a certain value, etc... just right-click on the breakpoint, <code>Breakpoint Properties</code> --> <code>Enable Condition</code>. There's even code assist within the textbox!</p>\n"}, {'answer_id': 628785, 'author': 'Andrey Tarantsov', 'author_id': 58146, 'author_profile': 'https://Stackoverflow.com/users/58146', 'pm_score': 7, 'selected': False, 'text': '<h1>Ctrl-2 something</h1>\n\n<p>Seems that nobody mentioned Ctrl-2 L (assign to new local variable) and Ctrl-2 F (assign to a new field), these ones have changed how I write code.</p>\n\n<p>Previously, I was typing, say (| is cursor location):</p>\n\n<pre><code>Display display = new |\n</code></pre>\n\n<p>and then I pushed Ctrl-Space to complete the constructor call. Now I type:</p>\n\n<pre><code>new Display()|\n</code></pre>\n\n<p>and press Ctrl-2 L, which results in:</p>\n\n<pre><code>Display display = new Display()|\n</code></pre>\n\n<p>This really speeds things up. (Ctrl-2 F does the same, but assigns to a new field rather than a new variable.)</p>\n\n<p>Another good shortcut is Ctrl-2 R: rename in file. It is much faster than rename refactoring (Alt-Shift-R) when renaming things like local variables.</p>\n\n<p>Actually I went to Keys customization preference page and assigned all sorts of additional quick fixes to Ctrl-2-something. For example I now press Ctrl-2 J to split/join variable declaration, Ctrl-2 C to extract an inner class into top-level, Ctrl-2 T to add throws declaration to the function, etc. There are tons of assignable quick fixes, go pick your favourite ones and assign them to Ctrl-2 shortcuts.</p>\n\n<h1>Templates</h1>\n\n<p>Another favourite of mine in my “npe” template, defined as:</p>\n\n<pre><code>if (${arg:localVar} == null)\n    throw new ${exception:link(NullPointerException,IllegalArgumentException)}("${arg:localVar} is null");\n</code></pre>\n\n<p>This allows me to quickly add null argument checks at the start of every function (especially ones that merely save the argument into a field or add it into a collection, especially constructors), which is great for detecting bugs early.</p>\n\n<p>See more useful templates at <a href="http://www.tarantsov.com/eclipse/templates/" rel="nofollow noreferrer">www.tarantsov.com/eclipse/templates/</a>. I won\'t list them all here because there are many, and because I often add new ones.</p>\n\n<h1>Completion</h1>\n\n<p>A few code completion tricks:</p>\n\n<ul>\n<li>camel case support mentioned in another answer: type cTM, get currentTimeMillis</li>\n<li>default constructor: in the class declaration with no default constructor push Ctrl-Space, the first choice will be to create one</li>\n<li>overloading: in the class declaration start typing name of a method you can overload, Ctrl-Space, pick one</li>\n<li>getter/setter creation: type “get”, Ctrl-Space, choose a getter to create; same with “is” and “set”</li>\n</ul>\n\n<h1>Assign To A New Field</h1>\n\n<p>This is how I add fields.</p>\n\n<ol>\n<li><p>If you have no constructors yet, add one. (Ctrl-Space anywhere in a class declaration, pick the first proposal.)</p></li>\n<li><p>Add an argument (| is cursor position):</p>\n\n<pre><code>public class MyClass {\n    public MyClass(int something|) {\n    }\n}\n</code></pre></li>\n<li><p>Press Ctrl-1, choose “assign to a new field”. You get:</p>\n\n<pre><code>public class MyClass {\n    private final Object something;\n    public MyClass(Object something) {\n        this.something = something;\n    }\n}\n</code></pre></li>\n<li><p>Add a null-pointer check if appropriate (see “npe” template above):</p>\n\n<pre><code>public class MyClass {\n    private final Object something;\n    public MyClass(Object something) {\n        npe|\n        this.something = something;\n    }\n}\n</code></pre>\n\n<p>Hit Ctrl-Space, get:</p>\n\n<pre><code>public class MyClass {\n    private final Object something;\n    public MyClass(Object something) {\n        if (something == null)\n            throw new NullPointerException("something is null");\n        this.something = something;\n    }\n}\n</code></pre></li>\n</ol>\n\n<p>A great time saver!</p>\n'}, {'answer_id': 653153, 'author': 'Chathuranga Chandrasekara', 'author_id': 76465, 'author_profile': 'https://Stackoverflow.com/users/76465', 'pm_score': 2, 'selected': False, 'text': '<p>Ctrl + Shift + P to find the matching brace. Really useful while working with long codes. </p>\n'}, {'answer_id': 681470, 'author': 'baskin', 'author_id': 82413, 'author_profile': 'https://Stackoverflow.com/users/82413', 'pm_score': 2, 'selected': False, 'text': '<p>One combination to rules them all.</p>\n\n<p>CTL+SHFT+L</p>\n\n<p>Get the list of all these "hidden" features.</p>\n'}, {'answer_id': 681562, 'author': 'Ma99uS', 'author_id': 20390, 'author_profile': 'https://Stackoverflow.com/users/20390', 'pm_score': 3, 'selected': False, 'text': '<p>Here is my collection of the most useful keyboard shortcuts for Eclipse 3:</p>\n\n<pre><code>Eclipse 3 Favorite Keyboard Shortcuts. \nby -=MaGGuS=-\n\nNavigate:\n\n•   Ctrl + Shift + L – Shows useful keyboard shortcuts in popup window \n•   Ctrl + H – Search.\n•   Ctrl + K – Goes to next search match in a single file. Shift + Ctrl + K – goes to previous match.\n•   F3 - Goes to ‘declaration’ of something. Same as Ctrl + Click.\n•   Ctrl + Shift + G - Use this on a method name or variable. It will search for references in the code (all the code) to that item.\n•   Ctrl + O – Shows outline view of the current class or interface.\n•   Ctrl + T – Shows class hierarchy of the current class or interface. F4 – shows the same in separate tab.\n•   Ctrl + Shift + T - Open Type. Search for any type globally in the workspace.\n•   Ctrl + Shift + R – Open Resource. Search for any file inside workspace.\n•   Ctrl + J – Incremental search. Similar to the search in firefox. It shows you results as you type. Shift + Ctrl +J - Reverse incremental search.\n•   Ctrl + Q – Goes to the last edit location.\n•   Ctrl + Left|Right – Go Back/Forward in history.\n•   Ctrl + L – Go to line number.\n•   Ctrl + E – This will give you a list of all the source code windows that are currently open. You can arrow up or down on the items to go to a tab.\n•   Ctrl +PgUp|PgDown – Cycles through editor tabs.\n•   Ctrl + Shift + Up|Down - Bounces you up and down through the methods in the source code.\n•   Ctrl + F7 – Switches between panes (views).\n•   Ctrl + ,|. – Go to the previous/next error. Great in combination with Ctrl + 1.\n•   Ctrl + 1 on an error – Brings up suggestions for fixing the error. The suggestions can be clicked.\n•   Ctrl + F4 – Close one source window.\n\nEdit:\n\n•   Ctrl + Space – Auto-completion.\n•   Ctrl + / – Toggle comment selected lines.\n•   Ctrl + Shift + /|\\ – Block comment/uncomment selected lines.\n•   Ctrl + Shift + F – Quickly ‘formats’ your java code based on your preferences set up under Window –&gt; Preferences.\n•   Ctrl + I – Correct indentations.\n•   Alt + Up|Down – move the highlighted code up/down one line. If nothing is selected, selects the current line.\n•   Ctrl + D – Delete row.\n•   Alt + Shift + Up|Down|Left|Right – select increasing semantic units.\n•   Ctrl + Shift + O – Organize Imports.\n•   Alt + Shift + S – Brings up “Source” menu.\no   Shift + Alt + S, R – Generate getter/setter.\no   Shift + Alt + S, O – Generate constructor using fields.\no   Shift + Alt + S, C – Generate constructor from superclass.\n•   Alt + Shift + T – Brings up “Refactor” menu.\n•   Alt + Shift + J – Insert javadoc comment.\n•   F2 – Display javadoc popup for current item. Shift + F2 – Display javadoc in external browser.\n\nRun/Debug:\n\n•   F11 / Ctrl + F11 – Execute/debug.\n•   Ctrl + Shift +B – Toggle breakpoint.\n•   When paused: F5 – Step into, F6 – Step over, F7 – Step out, F8 – Resume.\n•   Ctrl + F2 – Terminate.\n\nEOF\n</code></pre>\n'}, {'answer_id': 866408, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': "<p>Enabling 'Ignore white space' in the Compare/Patch settings is a real time saver!</p>\n"}, {'answer_id': 879292, 'author': 'Edward Shtern', 'author_id': 80163, 'author_profile': 'https://Stackoverflow.com/users/80163', 'pm_score': 2, 'selected': False, 'text': '<p>How about:</p>\n\n<p>Ctrl-PgUp and Ctrl-PgDn to navigate through the open files in the editor (including the overflow section if you Ctrl-PgDn all the way to the right).</p>\n'}, {'answer_id': 879346, 'author': 'RobbieV', 'author_id': 99627, 'author_profile': 'https://Stackoverflow.com/users/99627', 'pm_score': 0, 'selected': False, 'text': "<p>Hit CTRL+S very often. It's CTRL+1's best friend.</p>\n"}, {'answer_id': 879427, 'author': 'bedwyr', 'author_id': 66575, 'author_profile': 'https://Stackoverflow.com/users/66575', 'pm_score': 0, 'selected': False, 'text': "<p>I'm surprised no one mentioned the Emacs keybinding setting available in Eclipse.  This is one of my favorite little features; it allows me to transition from Emacs to Eclipse with little adjustment in my navigation preferences.</p>\n\n<p>Windows->Preferences->General->Keys->Scheme.</p>\n"}, {'answer_id': 923471, 'author': 'Peter Perháč', 'author_id': 81520, 'author_profile': 'https://Stackoverflow.com/users/81520', 'pm_score': 2, 'selected': False, 'text': "<p>I am sorry if this is a duplicate, but I don't think I have seen this one mentioned here and I scanned over all of the posts:</p>\n\n<p>Word completion:</p>\n\n<pre><code>Alt + /\n</code></pre>\n\n<p>is a really nice alternative to Ctrl+Space. It doesn't quite replace Ctrl+Space, but is <em>much faster</em>. And don't be afraid to press it multiple times, it will keep cycling over possible options.</p>\n"}, {'answer_id': 933080, 'author': 'Thorbjørn Ravn Andersen', 'author_id': 53897, 'author_profile': 'https://Stackoverflow.com/users/53897', 'pm_score': 1, 'selected': False, 'text': '<p>Shift-F2 goes to the Javadoc for any method.</p>\n\n<p>Use it a LOT.  For libraries you need to configure the location , but for standard classes they are predefined by Eclipse</p>\n'}, {'answer_id': 1004059, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>CTRL-MouseClick (left) as an alternative for F3 to go to declaration.</p>\n'}, {'answer_id': 1025491, 'author': 'Justin Johnson', 'author_id': 126562, 'author_profile': 'https://Stackoverflow.com/users/126562', 'pm_score': 1, 'selected': False, 'text': '<p>ctrl+d to delete the current line</p>\n\n<p>alt+up/down to move the current line or block of selected text up or down</p>\n\n<p>ctrl+alt+up/down to copy/duplication the current line or block of selected text up or down</p>\n\n<p>ctrl+alt+c SVN commit (with subversive)</p>\n\n<p>ctrl+alt+u SVN update (with subversive)</p>\n'}, {'answer_id': 1258076, 'author': 'RKitson', 'author_id': 16947, 'author_profile': 'https://Stackoverflow.com/users/16947', 'pm_score': 1, 'selected': False, 'text': "<p>I recently mapped alt-enter to the same command as ctrl-1.  It's just a bit easier to get to.</p>\n\n<p>I also use alt+shift+x &amp;t a bunch, but I'm not a fan of how the integrated test runner works.</p>\n"}, {'answer_id': 1369376, 'author': 'Trevor Harrison', 'author_id': 131795, 'author_profile': 'https://Stackoverflow.com/users/131795', 'pm_score': 5, 'selected': False, 'text': "<p>Clicking on the return type in a method's declaration highlights all exit points of the method.</p>\n\n<p>for instance:</p>\n\n<pre><code>1: public void foo()\n2: {\n3:   somecode();\n4:    if ( blah ) return;\n5:\n6:    bar();\n7: }\n</code></pre>\n\n<p>clicking on <strong>void</strong> will highlight the <strong>return</strong> on line 4 and the close <strong>}</strong> on line 7.</p>\n\n<p><strong>Update</strong>: It even works for try{} catch blocks. If you put cursor on exception in the catch block and eclipse will highlight the probable methods which may throw that exception.</p>\n"}, {'answer_id': 1674457, 'author': 'Lastnico', 'author_id': 201554, 'author_profile': 'https://Stackoverflow.com/users/201554', 'pm_score': 1, 'selected': False, 'text': '<p>If you are using the F3 key to navigate to the source code of a method, you could often waste your time to switch to the the Interface instead of going directly to the implementation class (there is often only one, for DAO, Service,... for example)</p>\n\n<p>Using Ctrl+Mouse pointer to one method of the code, you will be able to choose between directly going to the  Directly go to the Implementation (the class) or the Declaration (the interface)</p>\n\n<p>More info about this tip here:</p>\n\n<p><a href="http://www.ibm.com/developerworks/opensource/library/os-eclipse-galnav/index.html" rel="nofollow noreferrer">http://www.ibm.com/developerworks/opensource/library/os-eclipse-galnav/index.html</a></p>\n\n<p>This is only available in Galileo and you can use Ctrl + T as well for the same.</p>\n'}, {'answer_id': 1815891, 'author': 'Saravanan M', 'author_id': 27784, 'author_profile': 'https://Stackoverflow.com/users/27784', 'pm_score': 2, 'selected': False, 'text': '<p>alt+shift+z - to active the "surround with" sub menu. Handy when have to surround with a try catch block.</p>\n'}, {'answer_id': 2153804, 'author': 'rsilva4', 'author_id': 151918, 'author_profile': 'https://Stackoverflow.com/users/151918', 'pm_score': 1, 'selected': False, 'text': '<p>Double click next to an opening bracket will highlight all the code till the closing bracket, and vice versa.</p>\n'}, {'answer_id': 2153899, 'author': 'helpermethod', 'author_id': 1178669, 'author_profile': 'https://Stackoverflow.com/users/1178669', 'pm_score': 0, 'selected': False, 'text': '<p>In </p>\n\n<blockquote>\n  <p>Windows/Preferences/General/Keys</p>\n</blockquote>\n\n<p>define</p>\n\n<blockquote>\n  <p>Alt + C </p>\n</blockquote>\n\n<p>for SVN Commit</p>\n\n<blockquote>\n  <p>Alt + U</p>\n</blockquote>\n\n<p>for SVN Update</p>\n\n<blockquote>\n  <p>Shift + Ctrl + N</p>\n</blockquote>\n\n<p>for New Class Dialog. </p>\n'}, {'answer_id': 2225683, 'author': 'kukudas', 'author_id': 48402, 'author_profile': 'https://Stackoverflow.com/users/48402', 'pm_score': 0, 'selected': False, 'text': '<p>The eclipse help contains a lot of useful resources. Just search for "tips &amp; tricks". In particular the "Tips and Tricks (JDT)" i found to be very useful.</p>\n'}, {'answer_id': 2393372, 'author': 'Navi', 'author_id': 287727, 'author_profile': 'https://Stackoverflow.com/users/287727', 'pm_score': 2, 'selected': False, 'text': '<p>Ctrl + H searches/replaces through the whole workspace or project.</p>\n'}, {'answer_id': 2548104, 'author': 'matsev', 'author_id': 303598, 'author_profile': 'https://Stackoverflow.com/users/303598', 'pm_score': 1, 'selected': False, 'text': '<p>Install the <a href="http://www.mousefeed.com/" rel="nofollow noreferrer">MouseFeed</a> Eclipse plugin. After installation, it will show you a popup with the keyboard shortcut whenever you click on a button or a menu item that is associated with a shortcut.</p>\n'}, {'answer_id': 2548503, 'author': 'Chris Knight', 'author_id': 296108, 'author_profile': 'https://Stackoverflow.com/users/296108', 'pm_score': 1, 'selected': False, 'text': '<p>Ctrl-F6 to cycle focus through open Editor windows (with Ctrl-Shift-F6 to cycle backwards)</p>\n\n<p>Ctrl-F7 to cycle focus through Eclipse views</p>\n\n<p>Ctrl-F8 to cycle Eclipse perspectives</p>\n'}, {'answer_id': 2996941, 'author': 'Ravisha', 'author_id': 232899, 'author_profile': 'https://Stackoverflow.com/users/232899', 'pm_score': 1, 'selected': False, 'text': '<p>NOT so hidden feature ,but very less people use it and do not explore it\n<a href="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/preferences/java/editor/ref-preferences-templates.htm" rel="nofollow noreferrer">Template</a>\n<a href="http://wiki.eclipse.org/FAQ_How_do_I_provide_a_keyboard_shortcut_for_my_action%3F" rel="nofollow noreferrer">Key board shortcut</a></p>\n\n<p>and Alex has explained about <a href="http://www.eclipsezone.com/eclipse/forums/t88299.rhtml" rel="nofollow noreferrer">Member sort</a></p>\n\n<p><a href="http://blog.empiregpservices.com/post.cfm/eclipse-ide-shortcut-move-code-up-down" rel="nofollow noreferrer">Move lines</a></p>\n'}, {'answer_id': 3014198, 'author': 'Abhinav Sarkar', 'author_id': 126916, 'author_profile': 'https://Stackoverflow.com/users/126916', 'pm_score': 4, 'selected': False, 'text': '<p><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>M</kbd>: changes a static method or static attribute reference of a class to a static import.</p>\n\n<p>Before</p>\n\n<pre><code>import X;\n\n...\nX.callSomething();\n</code></pre>\n\n<p>After</p>\n\n<pre><code>import static X.callSomething;\n\n...\ncallSomething();\n</code></pre>\n'}, {'answer_id': 3160216, 'author': 'jeckhart', 'author_id': 327085, 'author_profile': 'https://Stackoverflow.com/users/327085', 'pm_score': 2, 'selected': False, 'text': "<p>You can CTRL-click on just about any type, field, method, or variable and eclipse will bring you to the declaration of that item:</p>\n\n<p>ie:</p>\n\n<ul>\n<li>on a local variable - brings you to the declaration statement in the function</li>\n<li>on a member variable - brings you to the definition in a class file that the member is declared (or the parent class if it's not overridden in a child class</li>\n<li>on a class - brings you to the top of the class file for that class</li>\n</ul>\n\n<p>You can also CTRL-hover over a type to bring up the option to find an implementation. This is useful if you are using an interface and want to see what classes implement that interface. It also works to see what super-classes and subclasses might implement/override a certain function.</p>\n"}, {'answer_id': 3164102, 'author': 'st0le', 'author_id': 216517, 'author_profile': 'https://Stackoverflow.com/users/216517', 'pm_score': 3, 'selected': False, 'text': '<p>Not so Hidden but IMO the best Trick.</p>\n\n<p>Assuming Default Settings (and you have\'nt added new snippets)</p>\n\n<p>Highlight (or select) a Text (String or Variable)...Press Ctrl+Space. Hit End+Enter.\nthe "sysout" snippet is triggered which wraps the selection around as its parameter.</p>\n\n<p>eg.</p>\n\n<pre><code> "hello world!"\n\nbecomes\nSystem.out.println("hello world!");\n</code></pre>\n\n<p>I love it so much that i\'ve implemented a similar snippet for Android\'s Toast and Log.i()\nHUGE Time saver during Manual Debugging....</p>\n'}]
['https://Stackoverflow.com/questions/54886', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5659/']