As I said, I would post my first actual useful post in almost 2 years. So here it is. Eclipse Tips & Tricks.
I put a PowerPoint together and presented this to my peers at VMware. These are the most useful features in Eclipse that I use daily. I’ve been using eclipse since about 2006, and haven’t looked back since. It’s by far my favorite IDE because of how customizable it is.
In the presentation, I went over Keyboard shortcuts, Navigation tips, and Organization techniques. You can grab the PowerPoint here.
Here’s a short list of keyboard shortcuts I find most useful in Eclipse and Flash Builder:
| Shortcut | Description | Extra Info |
|---|---|---|
| Searching shortcuts… | ||
| Ctrl+F | Find Text in current editor | Use word wrap, and sometimes useful to use case sensitive, incremental, and whole word search options |
| Ctrl+K | Find Next | Finds the next word based on previous search, or current selected word |
| Ctrl+Shift+K | Find Prevous | |
| Ctrl+H | Open Search Dialog | |
| Ctrl+Alt+H | Opens call Hierarchy | Opens call hierarchy for selected method or member variable |
| Ctrl+Shift+G | Finds references in your workspace | |
| Ctrl+Alt+G | Finds text in workspace | This is a shortcut from having to use the Search Dialog if you highlight something you want to search for |
| Ctrl+O | Quick Outline | Useful for when you want to jump to a method or members of your class |
| Navigation shortcuts… | ||
| Alt+Left/Right Arrow | Jump to previous/next word | Must match on a word that was previously highlighted, either by the IDE, or the user. |
| Ctrl+Q | Previous Edit Position | |
| Ctrl+Tab | Switch active editor | Acts like Alt+Tab for windows, but switches between active editors. Ctrl + Shift + Tab does the reverse, similar to windows Alt+Shift+Tab. |
| Ctrl+F7 | Switch View | Similar to Alt + Tab for editors, but navigates between open views. |
| F3 | Open Declaration | Same as Ctrl + Click |
| Ctrl+Shift+T | Open Type | With AnyEdit Tools Plugin, you can use Ctrl + Alt + T to open type under cursor. |
| Ctrl+Shift+R | Open Resource | With AnyEdit Tools Plugin, you can use Ctrl + Alt + T to open type under cursor.With AnyEdit Tools Plugin, you can use Ctrl + Alt + R to open resource under cursor. (Note: May conflict with Rename resource) |
| Editing shortcuts… | ||
| Alt+Down/Up Arrow | Move current line(s) | |
| Ctrl+Alt+Down/Up Arrow | Duplicate current line(s) | |
| Ctrl+D | Delete current line(s) | |
| Ctrl+/ | Comment | Comments the current line(s) with // comment syntax |
| Ctrl+Shift+C | Comment | Comments the current selectio with /* comment syntax */ |
| Ctrl+Shift+D | Add Other Comment | Adds ASDoc comment in Flex Source |
| Ctrl+Alt+R | Rename Variable/Function | While editing Flex Source |
| Ctrl+1 | Quick Fix | Renames a variable or method either in file or workspace. Also can use to create getter/setters for a variable |
| Ctrl+Space | Code Completion | If you type just the first few characters of a class, variable ,or method, you can use this shortcut for code completion to finish typing it out for you. |
| Other shortcuts… | ||
| Ctrl+I | Correct Indentation | |
| Ctrl+Shift+O | Organize Imports | |
| Ctrl+L | Goto line | |
| Alt+Shift+Q, [View Shortcut] | Opens/Switches to View | C = Console, D = Declarations, S = Search – Just to name a few… |
| Alt+Shift+X, [Run As...] | Run As… | The [Run As...] is the shortcut to run as a type, for example, W = Web Application in Flash Builder |
| Alt+Shift+D, [Debug As...] | Debug As… | The [Debug As...] is the shortcut to run as a type, for example, W = Web Application in Flash Builder |
| Ctrl+W / Ctrl+F4 | Close active editor/window | |
| Ctrl+Shift+W / Ctrl+Shift+F4 | Close all active editors | |
| Ctrl+M | Toggles editor maximize/restore. | |
| Debuggin shortcuts… | ||
| F5 | Step Into | |
| F6 | Step Over | |
| F7 | Step Return | |
| F8 | Resume | |
| Ctrl+Shift+L | List keyboard shortcuts | If all else fails, this keyboard shortcut will list all the other available keyboard shortcuts for you! |
You can always tell an expert! Thanks for cotnirbuintg.