{"id":33,"date":"2012-03-21T00:09:12","date_gmt":"2012-03-20T23:09:12","guid":{"rendered":"http:\/\/www.voldrich.net\/?p=33"},"modified":"2020-03-27T17:00:21","modified_gmt":"2020-03-27T15:00:21","slug":"eclipse-keys-shortcuts-bindings","status":"publish","type":"post","link":"https:\/\/www.voldrich.net\/index.php\/2012\/03\/21\/eclipse-keys-shortcuts-bindings\/","title":{"rendered":"Eclipse key bindings"},"content":{"rendered":"<p>First thing first &#8230; Eclipse key shortcuts setup. You can not work with Eclipse effectively unless you know and use them. So To remap\/investigate key bindings go to Window &gt; Preferences &gt; General &gt; Keys. Remember, you need to first click unbind command before setting new key!! Otherwise your changes will be ignored. If there is a conflict, it will be shown in Conflict window. So here is my essential list of shortcuts:<\/p>\n<p><!--more--><\/p>\n<p><strong>Ctrl + tab to switch between last used tabs\/files.<\/strong><br \/>\nEclipse by default uses strange shortcut for next and previous tab: CTRL-F6 \/SHIFT-CTRL-F6. You need to remap those keybindings to CTRL-TAB \/ SHIFT-CTRL-TAB every time you create a new workspace.<br \/>\nIn the filter field, type &#8220;next ed&#8221; and &#8220;previous ed&#8221; to find the right bindings.<\/p>\n<p><strong>ALT + arrow left, arrow right<\/strong><br \/>\nGo to previous \/ next cursor position. Jumps also between files.<\/p>\n<p><strong>Ctrl + Shift + F <\/strong><br \/>\nFormat code<\/p>\n<p><strong>Ctrl + Shift + E<\/strong><br \/>\nSwitch to editor &#8211; show list of opened files with paths<\/p>\n<p><strong>Ctrl + Shift + T<\/strong><br \/>\nFind class by name \/ package<\/p>\n<p><strong>Ctrl + Shift + G<\/strong><br \/>\nFind references in workspace &#8211; remap it to Ctrl + Shift + Q so it is closer. Remove the quick diff which is mapped to this command.<\/p>\n<p><strong>Ctrl + mouse hover over method<\/strong><br \/>\nSelect from popup &#8211; Open Implementation &#8211; enables you to jump from interface call to a specific implementation<\/p>\n<p><strong>Ctrl + \/<\/strong><br \/>\ntoggle comment<\/p>\n<p><strong>Ctrl + Shift + \/<\/strong><br \/>\nadd block comment to selection (works also in XML)<\/p>\n<p><strong>Ctrl + Shift + \\<\/strong><br \/>\nremove block comment from selection<\/p>\n<p><strong>Ctrl +1<\/strong><br \/>\nQuick fix. Shows menu with suggestions about how to fix current error \/ warning.<\/p>\n<p><strong>Ctrl + Shift + O<\/strong><br \/>\nFix and organize imports.<\/p>\n<p><strong>Ctrl + Space<\/strong><br \/>\nAnd of course the all time favourite shortcut for code autocomplete.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First thing first &#8230; Eclipse key shortcuts setup. You can not work with Eclipse effectively unless you know and use them. So To remap\/investigate key bindings go to Window &gt; Preferences &gt; General &gt; Keys. Remember, you need to first click unbind command before setting new key!! Otherwise your changes will be ignored. If there [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":1,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}