{"id":7719,"date":"2020-06-22T21:33:57","date_gmt":"2020-06-23T03:33:57","guid":{"rendered":"http:\/\/www.designandexecute.com\/designs\/?p=7719"},"modified":"2020-06-30T10:41:02","modified_gmt":"2020-06-30T16:41:02","slug":"my-top-10-eclipse-keyboard-shortcuts-for-java-programmers","status":"publish","type":"post","link":"https:\/\/www.designandexecute.com\/designs\/my-top-10-eclipse-keyboard-shortcuts-for-java-programmers\/","title":{"rendered":"My Top 25 Eclipse Keyboard Shortcuts for Java Programmers"},"content":{"rendered":"<ol>\n<li><strong>CTRL + 3<\/strong> is the master key to search any feature<\/li>\n<li><strong>Alt+Shift+J<\/strong> to add Javadoc comment.\u00a0To add a comment to a field, position the cursor on the field declaration. To add a comment to a method, position the cursor anywhere in the method or on its declaration<\/li>\n<li><strong>CTRL + SHIFT + R<\/strong> to open a resource<\/li>\n<li><strong>F3<\/strong> to open declaration to\u00a0dive into methods<\/li>\n<li><strong>SHIFT and hover<\/strong> mouse is like F3 above, without leaving the current position<\/li>\n<li><strong>CTRL + O<\/strong> gives the outline with filter to jump to methods<\/li>\n<li><strong>CTRL + SHIFT + O<\/strong> \u2013 Organize imports<\/li>\n<li><strong>CTRL <\/strong>+ <strong>spacebar<\/strong>: content assist, configure this stuff: <code>window -&gt; preferences -&gt; java -&gt; editor -&gt; content assist<\/code><\/li>\n<li><strong>CTRL + SHIFT + L\u00a0<\/strong>to list all short cuts<\/li>\n<li><strong>sysout + spacebar<\/strong>: content assist to insert <code>System.out.println()<\/code><\/li>\n<li><strong>CTRL +1<\/strong> to create local variables\u00a0<\/li>\n<li><strong>CTRL + L\u00a0<\/strong>to go to the specified line number<\/li>\n<li><strong>CTRL + w<\/strong> to close the current file,<\/li>\n<li><strong>CTRL + SHIFT + w <\/strong>close all files<\/li>\n<li><strong>CTRL + Q <\/strong>go to the place of last edit<\/li>\n<li><strong>Alt + right <\/strong>and <strong>Alt + left<\/strong> for going back and forth on the history of editing path<\/li>\n<li><strong>CTRL + D\u00a0<\/strong>delete a line<\/li>\n<li><strong>CTRL + SHIFT + \/\u00a0<\/strong>to comment out and un-comment a line, for a paragraph highlight the text to be commented out.<\/li>\n<li><strong>CTRL + SHIFT + F\u00a0<\/strong>to auto format (beautify the code)<\/li>\n<li><strong>CTRL + SHIFT + P <\/strong>to find a closing brace<\/li>\n<li><strong>CTRL + SHIFT + G to <\/strong>find references of the method\/variable highlighted<\/li>\n<li><strong>CTRL + SHIFT + H <\/strong>to find calling references of the method highlighted<\/li>\n<li><strong>CTRL + SHIFT + T<\/strong> &#8211; search for type ( for example if you have an interface and you want to know who all\u00a0 classes have implemented them. Very helpful tool while debugging.<\/li>\n<li><strong>Alt &lt;-\u00a0 alt &#8211; &gt;<\/strong> mostly used to navigate to previously opened tab.<\/li>\n<li>\n<div dir=\"auto\"><strong>CTRL + page up and CTRL + page down<\/strong> navigate between previously opened screen and current screen.\u00a0<\/div>\n<\/li>\n<\/ol>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CTRL + 3 is the master key to search any feature Alt+Shift+J to add Javadoc comment.\u00a0To add a comment to a field, position the cursor on the field declaration. To add a comment to a method, position the cursor anywhere in the method or on its declaration CTRL + SHIFT + R to open a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2943,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-7719","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"jetpack_featured_media_url":"https:\/\/www.designandexecute.com\/designs\/wp-content\/uploads\/2008\/08\/Java.jpg","_links":{"self":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts\/7719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/comments?post=7719"}],"version-history":[{"count":4,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts\/7719\/revisions"}],"predecessor-version":[{"id":7784,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts\/7719\/revisions\/7784"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/media\/2943"}],"wp:attachment":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/media?parent=7719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/categories?post=7719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/tags?post=7719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}