Split Search/Replace preview vertically (top/bottom) - visual-studio-code

Currently, search/replace preview is shown with 'before' view on left and 'after' on right.
For longer code lines or smaller screens this is quite impractical:
Is there a possiblity to open the split view vertically?
(I have tried setting workbench.editor.splitInGroupLayout to vertical)

The closest I found was to enable inline view (in preview editor's top right overflow menu):

Related

In VS Code can I change the width of the split editor panel with a shortcut or command?

In VS Code When I have a vertical editor split with 2 panels I would like to be able to change the right panel's width to a predefined total window width % using a shortcut.
Say I would like to have one shortcut to show the right panel at 50% of the overall VSC width. Then the second shortcut is 30%, the third is 80% and the 4th is 0%.
At the same time I would not like to have any files from the right editor panel joined or closed when I change the panel's width.
Is it posssible with the built-in commands of extensions?
I discovered the VS Code behavior that partially resembles the feature I described above.
To see this we have to split the editor in 2 panels (View->Editor Layout->Two Columns), open some file in the right hand one, manually move its border to the farthest right. Then as we switch between the panels with Ctrl-1 and Ctrl-2 (Windows) the respective active panel will restore its maximum width and the other will get the minimum width.
This does not fully solve my problem but at least alleviates the pain.

VSCode editor not filling all space available

When I open a file in VSCode, its not filling all editor space but instead of that, it stays in the middle and with a small width. How could I fix it to not resize and fill all space available.
The screenshot shows this behavior
Screenshot
Go to View > Appearance > Untick Centered Layout

How do you hide the sidebars in Eclipse so you can just see the code?

I'm new to Eclipse. One of the things I like most about it is the fantastic indexing, and the symbols/function outline at the right. One of the things I like least about it is how small the code area is due to all of the side-bars (one each in Eclipse CDT at the left, right, and bottom makes the code area quite small).
Is there a quick way to toggle between hiding and showing the sidebars?
After some tinkering around I accidentally discovered it! Just double-click on your open file-name tab and it will maximize to full-screen. Double-click again to toggle it back to your normal "perspective". This applies to the left, right, and bottom sidebars too: just double-click on any of their tabs and they will maximize. Do it again to toggle back to normal size.

How can I scroll left and right in Eclipse editor with the keyboard without moving the cursor?

To scroll within the Eclipse editor without moving the cursor up and down one can use CTRL+Down or CTRL+Up. But what about left and right?
It is not possible. If you search keys in Eclipse's Preferences, you will find out that you only have Scroll up and Scroll down that you can set hotkeys on.
My recommendation would be changing the maximum line length in the editor.
Make your code shorter. After all, looooong lines of code are not so readable.
Also, resize your editor area. If you feel strangled, remove the Outline, TaskList, and Build view from your right side of Eclipse, and enlarge the editor.

emacs: x-popup-menu max size constraints?

I'm working on an intellisense or code-completion capability for C#.
So far, so good. Right now I have basic completion working. There are 2 ways to request completion. The first cycles through all the potential matches. The second presents a popup menu of the matches. It works for types:
And also for local and instance variables:
I'm confronting two problems with x-popup-menu:
the popup menu can expand to consume all available screen space, when the number of choices is large. Literally it can consume the entire screen, and obscure everything else, including the entire emacs window and every other window.
The silly thing is, it's scrollable. First it expands to consume all available space, then it also becomes scrollable. Seems like it would make sense for it to expand to a certain point, and then become scrollable, rather than expanding to take all available space.
Is there a way I can limit the maximum size of x-popup-menu?
To specify the position of the popup menu, I pass in a position, and x-popup-menu uses that as the *middle*, not the left, of the top line of the menu. Why middle? who knows.
What this means is, if I specify (40 . 60) for the location of the menu, and the menu happens to be 100 pixels wide, the menu will extend beyond the left border of the emacs window. You can see this in the 2nd image above.
If I knew how wide the popup would be before specifying the position, I could compensate. But I don't.
Is there a workaround? Is there a way to get x-popup-menu to take its position as the LEFT rather than the middle?
Addendum: Doc for x-popup-menu
x-popup-menu is a built-in function in `C source code'.
(x-popup-menu POSITION MENU)
Pop up a deck-of-cards menu and return user's selection.
PO SITION is a position specification. This is either a mouse button
event or a list ((XOFFSET YOFFSET) WINDOW) where XOFFSET and YOFFSET
are positions in pixels from the top left corner of WINDOW's frame
(WINDOW may be a frame object instead of a window). This controls the
position of the center of the first line in the first pane of the
menu, not the top left of the menu as a whole. If POSITION is t, it
means to use the current mouse position.
Some people like Emacs because it doesn't provide popup windows (see e.g. this blog entry). The more "emacsy" way of presenting your list of possible completions is to show them in a split buffer. That way you would automatically avoid all of the above issues (screen real estate & scrolling) and would probably attract more of the die-hard Emacs users.
But that's pure speculation :-)
You can base your autocompletion backend on company or autocomplete where display of suggestions is handled for you.