pydev: package explorer disappears when file is openend - pydev

Silly question, but I don't know what to do:
My view in Eclipse pydev has changed;
Don't know what I did It used to be that the Pydev package explorer would appear on the left and then whatever file I selected would appear on the right, in the editor area. Instead, Pydev now opens a blank window.
I can make the Pydev package explorer appear by selecting it from the little icon on the lower left. However, when I then click on a file, the file opens, but the explorer disappears. Very annoying.

You probably made the package explorer work as a 'fast view'. You can do the following: Ctrl+F7 until you reach it (this keybinding should allow you to pass through the opened views), then alt+- (which should open the view menu) and deselect the 'fast view'.

Related

VS Code editor, unlinking explorer pane and editor tabs

When I click on an editor tab the focus in the explorer pane shifts to the file in question. This seems pointless to me. Can I stop this from happening? Obviously I want to continue being able to click on a file in the explorer pane and for the relevant tab to open or come up in the editor.
You may be wondering why I want this. It's because one of my open files is way down the explorer pane list and the files I want to see in the pane are up at the top of the list.

How to remove eclipse project explorer above the editor?

When I was working on a project for my program fundimentals class I somehow got this miniature project explorer above the editor in eclipse, I have tried to look for a solution on google but I don't think i'm asking the right question so this was my final place to go.
Here is a screenshot of my eclipse:
That is the breadcrumb view.
To toggle it on/off:
Shift+Alt+B (by default on Linux)
Right click in editor and choose Show in breadcrumb
Ctrl+3 to open up quick access (or click in quick access) and type breadcrumb and select the toggle command as in this screenshot:
Click this icon in the tool bar
Yeah that is annoying, the workspace is cluttered enough. I was trying to simply minimize the explorer area so I could see the whole line of code and I eneded up activating this breadcrumb mode. Looks like:
FILES/PREFERENCES/SETTINGS/WORKBENCH/BREADCRUMBS/DISABLE

What is the IntelliJ equivalent from Eclipse, show file in the package explorer view

I am more familiar in Eclipse and need the IntelliJ equivalent. In Eclipse, I could open a java class, right click, show file in package explorer and it would highlight the file on the left. What is the IntelliJ equivalent.
You can highlight a file you have open in the editor in a number of views using the Select In...menu that can be opened using ALT-F1 when the editor window has the cursor.
The most usual ones (Project/Packages) are found under the menu opened by ALT-F1 and then right arrow.
You can also double click the circle/cross button ontop of the Project view
it will show you the current active file in the project structure
You can turn on Autoscroll from source in Project Tool Window so that the file/class to the left is scrolled to as soon as you open a file for edit.
If this option is on, IntelliJ IDEA automatically navigates from a file in the editor to the corresponding node (file, class, field, method, etc.) in the Project tool window.
Note that selecting this option makes the Scroll to Source button unavailable.
It is called "select in project view".
You'd better edit your keymap ! (alt+F1 right arrow is not very efficient...)
file > settings > keymap > select in project view : alt+E for example
You can press Alt-Home, it goes to the navigation bar.
Go to or select the package by pressing left arrow.
Press F4 now to see it in the project view.

How do I show an open file in eclipse Package Explorer?

When a file (.java for example) is open in Eclipse, how do I get the Package Explorer to show the file that I am working on?
There is a button in the Package Explorer view that looks like two yellow arrows pointed at left and right. The tooltip is "Link with Editor". Click that.
I've found that constantly syncing package explorer with editor causes package explorer view eventually to grow too long, especially with large projects. I've instead mapped a keyboard shortcut to sync package explorer with the editor. If you are using mylyn this is of course a smaller problem.
Key mappings are available at Window ⟶ Preferences ⟶ General ⟶ Keys ⟶ Show In (Show In Target Id: Package Explorer). Mine is Ctrl+Alt+⟵, be welcome to copy.
In Luna Command name has changed a little. Instead of Show In (Show In Target Id: Package Explorer) command is now Show In (Package Explorer).
From this site:
How to use Show In functionality from the popup menu
Press Alt+Shift+W while you’re in an editor. This pops up a menu with a number of choices. The choices will vary depending on what plugins you have installed. Select the option you want and press Enter.
The fastest way to select an option is to use the first letter of the option, eg. to go to the Package Explorer, press P (you may have to do this 2 or 3 times depending on how many other options start with P). The press Enter. You could also use the arrow keys.
Invoke "Show In" faster with a keyboard shortcut
If you frequently use one of the options (eg. Package Explorer), you can map a single keyboard shortcut to invoke it.
Go to Windows > Preferences > General > Keys.
Search for Show In. Eclipse will list a number of Show In options. In
our case we want Show In (Show In Target Id: Package Explorer).
Select the command you want, enter a key in Binding and you’re done.
Always link active source file with package explorer
If you like this feature, you can open the package editor and click on the double yellow arrows to always show the currently selected source file in the package explorer.
There is a double arrow icon at the top of the Package Explorer that toggles this behaviour. click on It
In your Eclipse .java file editor, right-click anywhere, then "Show In-> Package Explorer".
As shown:
As you can see, you can also open file in Navigator, Outline and so on with this.
Above project explorer window you will see the below image in the red circle , just clicked on this one mean when clicked any file in the project will showing you in project explorer.
If you want to show only one file you can
1 - Click right on the file .
2 - Select show-in .
3 - Select show in project explorer .
4 - Done.
The below image explain more about it .

Eclipse - Avoid the scrolling behaviour upon closing a file

When you open a file in a project and then close it the Package Explorer will scroll to a file in another project if there is a file open there. Is there a way to stop this behaviour?
It sounds like you have the 'Link with Editor' option toggled on. This links the Package Explorer and the editor, which can cause the behavior you are seeing.
This option shows up in the Package Explorer header area as a button with arrows pointing right and left - if you hover over it, it'll say 'Link with Editor'. Click it once to turn it off, and it should stop automatically scrolling the Package Explorer view.