Eclipse Outline view is hiding code - eclipse

I'm using the Kepler CDT release (4.3.1) of Eclipse. When I click on anything in the Outline view, the corresponding editor view is reduced to showing just that item. If I click on a variable, I get a single line with just that variable. The Edit->Expand Selection options are all dimmed out. Hitting Shift-Alt-Up Arrow just moves me up to the previous item in the outline view. If I change editor tabs and come back then the Expand Selection options enable and I can manually hit Shift-Alt-Up Arrow a number of times to make the entire file visible again but clicking on anything in the outline view again will just reduce the view. Is there some new setting in Kepler that will make outline stop doing this?

Turns out the feature for Show Source of Selected Element Only was turned on. In Kepler the toolbar button for this is not visible. Even searching under quick access doesn't turn it up so it's somewhat of a puzzle how it could have been turned on. I actually thought maybe it had been removed from Kepler.
In the Customize Perspective dialog under the Tool Bar Visibility tab. In the Tool Bar Structure section I opened the area for Editor Presentation. I noticed there was actually a check next to the box for Show Source of Selected Element Only. However, it wasn't visible in the toolbar (a bug I've seen before in Eclipse) so I unchecked it and checked it. Then I exited the dialog. Now the button showed up on the toolbar. I then toggled the feature on and then off. Now clicking in the outline view works correctly.just moves to the correct spot.

Related

VS Code - toggle search icon in Activity Bar, move from panel or back

I accidentally removed search icon in Activity Bar and don't know how to add it there again. If I click on Activity Bar, I don't see this option any more.
Update: v1.44 you can now simply drag many of the views, including "Search" from the sidebar to the panel and back. See https://code.visualstudio.com/updates/v1_44#_increased-view-placement-flexibility and https://stackoverflow.com/a/55981465/836330
Update: v1.42 added a context menu option
Move to Panel/Move to Sidebar
to certain typically sidebar views like Search, Outline and custom views. So you wouldn't have to use a setting to move the Search view back to the sidebar. Here is a demo:
Also notice that you no longer right-click in the empty space below the search inputs in the sidebar but on/near the Search header itself to bring up the toggle option.
As part of the v1.42 release the search.location setting mentioned below will be deprecated.
Your setting should migrate automatically, but you will need to use
the new generalized method to move the Search view going forward. You
do not need to enable the experimental preview setting above in order
to move the Search view with the new context menu entry.
So I don't think there is a setting anymore, you just right-click on the header text "Search" whether it is in the Panel or active in the Sidebar to move it. See the demo below.
Right-click on the "Search" header if you have it in the sidebar to "Move to Panel".
If Search is in the panel, right-click on the word Search to "Move to Sidebar".
To enable moving the Output view at this point, you need to enable workbench.view.experimental.allowMovingToNewContainer.
There is a new unbound command workbench.view.search.moveView which you can use to toggle the search position between the panel and sidebar. But note that in my testing it only works a couple of times because it focuses the panel when you move search to the sidebar - I'll file a bug.
Previous Answer::
You may have modified the setting:
"search.location": "sidebar",
which is the default to the alternative
"search.location": "panel",
which would put the search widget into the terminal panel as another tab.
As of vscode v1.35 or so, you can now right-click in the empty space below the search view (i.e., in the sidebar under the open search inputs) and you will get an option to Toggle Search View Position.
This context menu switch of the search view is persistent. It will automatically add this setting to your settings.json:
"search.location": "panel",
The only way at present (but see edit just below) to move the icon back to the activity bar (and thus the search across files functionality to the sidebar) is to change that setting to the sidebar option. Or look for this setting in the settings editor:
Search: Location
Controls whether the search will be shown as a view
in the sidebar or as a panel in the panel area for more horizontal
space.
EDIT: More recently, vscode added the abilty to right-click in the search area when it is in the panel to toggle it back to the sidebar.
In windows
file--> preferences-->settings
In mac
preferences -> settings
vs-code version 1.30.2
Step 1: Click on Edit from Navbar
Step 2: Find in Files
.
.
You can easily search for anything in the side paanel
or else if you want anything to search inside files then
Step 1: Click "Ctrl+F"

Docking a detached view with Eclipse

When I drag a view outside of the Workbench window, the view becomes a detached view.
The Eclipse help says (Workbench User Guide -> Tasks -> Working with views and editors -> Detaching views and editors): "To restore the view to be shown inside of the Workbench window, drag the view tab into the Workbench window."
With my configuration (Windows 7; 2 screens; pushing the maximise button maximises Eclipse in one of the two screens) this does not work.
I have to use "Windows -> Restore Perspective ..." to get the view back inside the Workbench.
Is there an other way for reattaching a detached view?
As per njol's answer above, once you have your tab detached (showing as floating outside of your Eclipse IDE), simply click on the tab (not on the title of detached tab window) and drag. Then you will see mouse cursor change showing you where you can drop it to attach the tab to IDE.
You have to move each tab from the detached views window to the side of a tab in the main window. (The fact that we should move it to the side of another tab was a detail that took me a while to grasp.) A GIF would help:
Note the little green vertical line that appears beside the "Servers" tab — it indicates you've dragged the tab in the right place:
* The red circle only appears when I am pressing the mouse button. It was added by an external program to highlight when the mouse is pressed; it will not appear to you.
From #zvezda's comment above,
"Windows -> Reset Perspective ..."
was the only method that worked for me (using Mars on Fedora 22).

Eclipse quick fix dialogue hides bottom line

Whenever the Eclipse quick fix dialogue pops up, all options are visible, but as soon as the mouse is moved to the dialogue the bottom option is hidden by a button saying "Configure Annotation Preferences". To see the bottom option again I will need to scroll down in the dialogue. This happens even if there is only one option in the pop up.
I find this very annoying, since I'm more likely to select a quick fix option than to change some preferences. (Am I the only one?:))
How can I get rid of the button, or at least get the dialogue to resize itself so no options are hidden?
I'm runnig Juno on Ubuntu_64, v12.04.
Change the preference Window -> Preferences -> General -> Editor -> Text Editors -> When mouse moved into hover to "Enrich on click" to work around the issue. Works fine for me on the same Ubuntu setup.
Be warned that this only works for hovers which don't need to be scrolled. If scrolling is necessary to see the content at the bottom, then either clicking into the popup or scrolling with the mouse wheel will still bring up that configuration button. To make this less of a problem, you may want to configure your Java, Lint or other plugins contributing quick fixes to ignore certain types of problems (which you never fix).

Hide Eclipse Menu Bar (auto-hide)

I'm trying to hide Eclipse menu bar to save some screen real estate. I found I can do this using perspectives but that would permanently take out the menu from that perspective. The behavior that I want to get is something along of auto-hide, so that the menu remains hidden until I hit ALT+F for example or any other ALT key combo.
Is there's a setting or a plugin that can do this?
Thanks!
This is just a work around. Create two perspectives.
First one named - With Menu.
Second one named - Without Menu.
In the "Without Menu" perspective remove all menu items and Save.
To create the effect of hiding and showing, switch between perspectives by using
Ctrl+F8.
Theres a fast view option- just right click the tab and select Fast View. It'll bring the entire window down to the eclipse taskbar. You can recover the window by just clicking on it's icon.
Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=56119
Have a look here Is there a Macro Recorder for Eclipse? You could set up the macro so respond to ALT+F possibly.

How can I enable vertical split views in the Xcode IDE?

I'm diving into iOS development and I'm using Xcode on a multi-monitor setup.
Obviously I want to take advantage of the multiple monitors to view and edit multiple panes of source code, but I'm having a hard time figuring out how to enable vertical split views. In other IDEs, it's just an option you click in the "Window" menu.
How do I enable vertical split views in Xcode?
Xcode 4
Check out the options in the Navigate file menu item. I like Command+J. Also, while the Editor is active, i.e., you're editing code or your cursor is blinking in the Editor, press Command+Option+,. Or, you can Option-click (or Option+Shift-click) a file in the Navigator. Then, to make more room for editing, I like to press Command+0 to hide the Navigator and, if they're not already hidden, Command+Option+0 to hide the Utilities. Press Command+Enter to go back to the Standard Editor view.
Xcode 3
Hold down alt and click the little tiny box (with a horizontal line through it) in the upper-right-hand corner of the screen. It's underneath the tiny little lock icon.
Xcode 9 for those coming from a search engine:
Click and hold on the Assistant Editor button for an options menu. Choosing "Assistant Editors on Right" will cause the view to be split vertically.
This has changed in Xcode 12, maybe earlier. All my Option-Clicks go to open second view appearing below rather than size by side. The solution is to go to Views -> Change Editor Orientation
respect to mattdipasquale
Command+J --------Check out the options in the Navigate file menu item
Command+Option+,------editing code or your cursor is blinking in the Editor
Option-click (or Option+Shift-click)------open a file in the Navigator
Command+Enter----------reset
Use the dropdown on the split icon to choose between different views
For Xcode 14 you just have to click this icon: