Skip to main content

Posts

Showing posts with the label keyboard shortcut

Eclipse Keyboard Shortcuts - Neon (4.6)

I created this page as a personal quick-reference lookup. It will therefore not worry about completeness (try here if you want a more complete list). My personal list will also be in a least-to-most-common use sequence. After all, the ones I use all the time I already remember. It's for the more occasional ones that I want a quick reference. Hierarchy Ctrl + Alt + H Open Call Hierarchy Ctrl + T Quick Hierarchy F4 Show Type Hierarchy Switch View to... Shift + Alt + Q then C Console Shift + Alt + Q then Z History Shift + Alt + Q then O Outline Shift + Alt + Q then S Search Shift + Alt + Q then Y Synchronize Shift + Alt + Q then T Type Hierarchy Java Comments Ctrl + / Toggle Comments Ctrl + 7 Toggle Comments Shift + Ctrl + C Toggle Comments Shift + Ctrl + / Add Block Comments Shift + Ctrl + \ Remove Block Comments Essentials for Java Coding Ctrl + 1 Quick Fix - opens a context menu with useful time-saving cod...

How to Disable Windows Rotate Screen Keyboard Shortcut

I love keyboard shortcuts and hot-keys. I learn and use as many of them as I can. Sometimes, however, the same short-cut can get defined by multiple parts of a system and can create surprising results. For example: when working in Eclipse IDE, a very useful one is CTRL-ALT-UP (or DOWN) arrow. It takes whatever line the cursor is currently on and duplicates it above or below the current line. It also works on highlighted blocks of lines. I use it all the time to preserve the original form of a line or block. For example, when I am writing unit-tests that are all related, I take the one I just wrote and CTRL-ALT-DOWN to copy it, then I modify the duplicated code for my next test. Saves retying the boiler-plate. I may also use it when modifying some code. I duplicate it with CTRL-ALT-DOWN keyboard short cut and then while the line(s) are highlighted still, I do a CTRL-ForwardSlash which in Eclipse comments out the line. This preserves the original line while I tinker and experiment. ...