Eclipse: shortcut for "open source"?

Is there a shortcut in Eclipse for an “open source project”? Ideally, I would like to open the "Open Resource" dialog box.

I want this because I have a testing project that I use whenever I want to try something ... But it is annoying to scroll through the massive Navigator, trying to find it and click on it when it closes.

+7
eclipse keyboard-shortcuts
source share
5 answers

Not by default. The action is defined here, without a keyboard shortcut.
http://eclipse-tools.sourceforge.net/Keyboard_shortcuts_(3.0).pdf

+1
source share

You can add a working set containing only your test project, and use the "Select Working Set ..." function in the menu bar of the "Navigator" tab:

alt text

Until this opens the project for you, he will do it the only thing you see in the browser or package explorer.

After you add it, it will be in the list and you won’t need to open the “Select working set ...” dialog box, just select “my test project” in the pop-up menu. This is caused by this little triangle in the upper right corner of the Navigator, I'm not sure if there is a shortcut.

To return to normal operation, simply “Deselect the working set” and you will see everything again.

I also found the Collapse All button / shortcut to be convenient when searching for things on the Package Explorer or Navigator tabs.

+1
source share

If the test project is already open and you know the class name in it, you can go to this class using Navigate → Open Type (there is also a shorcut, on mac osx there is Shift + Command + T )

It’s easier for me to move using this method, but I did not know about it until someone else showed me, maybe this helps.


You can set a shortcut in the section "Settings" → "General" - "Keys", "Search for a project". However, for me this does not work from the editor itself. For example, I have to click on the package explorer. In addition, if you have many projects, they will also have a huge list, as expected.

0
source share

You also can:

  • switch workspace (in the workspace with only this test project in it) (without shortcut: you can define it)
  • install mylyn and select the "test" task (which will immediately clear your Navigator view, leaving only the appropriate classes / methods).
0
source share

I propose a solution to the problem that I had, which, if I correctly interpreted the question, is very similar to yours.

I find that when I have many projects with many advanced directories / packages inside Project Explorer, trying to find a specific project is annoying because I have to scroll through it all. I could collapse all projects, but then I also lost my current position in each project.

I just wanted to find a specific project by name and open it in the Project Explorer tree. Opening a file inside a project using Open Resource is not a good enough workaround, since thinking that the file name inside this project is completely out of context is often equally annoying!

The solution, which works great (at least in Eclipse Juno, Mac OSX), focuses on Project Explorer and holds Shift and starts typing the name of the project. This dynamically selects the best matching project in Explorer when you type. Then, while holding your hands on the keyboard, you can use the arrow keys to open and view the project.

This is not very, but it does its job and saves a few valuable seconds :)

0
source share