How to move a splitted pane of editor window to another monitor? - visual-studio

As you know you can split an Editor window in two parts. So I can edit one part of a file and look at another of same file at same time. That is a great feature.
How can I move one part to another monitor?
Or is it possible to open the same file twice?

Under the menu item Window, select "New Window". Make sure the tab you want duplicated is selected.
The new window can be dragged on to the other monitor.

Related

Form under toolbar, can't get it down

The top of the form container is "up" under the toolbar. I can't find out how to get it down so that I can move the form to different areas on the screen. Using VB6.
Just remove -or rename- the (.vbw) file, that would reset window size & location.. Good luck :)
Edit:
You can also open the file with any text editor and change the form container position (in case you want to maintain the other settings
Click the form then Alt+- (hyphen) to open the MDI child forms default menu, hit M for the Move item and you can use the arrow keys (or mouse iirc) to move it around.

Shortcut to move cursor to input text in Find Navigator-Xcode 6

What is the shortcut to move cursor to input textfield in Find Navigator in Xcode?
For example, there is a image and I want to find where the image is used in Xcode project. I copy the image's name in Project Navigator (Cmd+C), then move to the Find Navigator (Cmd+3). I want to know shortcut to move cursor to input text field instead click mouse to the text field.
Does anyone know what the shortcut is? Thank you.
After you press CMD+3, try SHIFT+TAB once or press TAB three times. Let me know if it works

In Xcode, can I keep keyboard focus in code window when performing searches and selecting files?

After interacting with the Project Navigator, or Search Navigator (The "folder" and "magnifying glass" tabs in the vertical pane on the left), is there a way to send keyboard focus to the code window-pane without clicking in the pane? Clicking has the side-effect of de-selecting selected text and moving the cursor position which in some cases is undesirable. The usual tab-stop mechanism doesn't seem to include the code pane in Xcode.
This is most frustrating when clicking project-wide search-results (which opens the file and selects the matching text for you, but doesn't put keyboard focus there) or clicking on files to temporarily look at a different file. In the latter case I may wish to preserve my cursor position and any already selected text in each file.

xcode displaying file list window when editing

When I cut or paste, and possibly other times, my xcode will suddenly pop open that upper window above my code display, the window that lists the file names and roles and code size. This only started happening today, so I'm wondering if I accidentally triggered some setting. It's really annoying as I drag the horizontal window bar up to cover it so I can maximize my code window view and it comes back down minutes later after some editing action (cut, paste, something). I don't know if this possibly has to do with my having a split window view (two code windows one above the other) perhaps.
Does anyone know how to stop this from happening?
It could be a bug related to split views. I do not have a solution, but I do have a workaround. Select the file you are editing and press enter. Then create a split view and open the next file the same way. You will now have a separate editor window with the two files. Since this window does not have the file lists, it cannot show them.

Visual Studio: How can I see the same file in two separate tab groups?

I want to be able to edit one method while looking at another method in the same file, as reference.
Can this be done?
You can open the file in another tab (Window -> New Window).
Doing so you have two copies of the same file. Then you can right-click the tab bar and select New Vertical Tab Group (or New Horizontal Tab Group, the one you like more).
Hope I understood you question..
Be on the tab you want to duplicate,then click in the menu bar at the top onWindow > New Window
Finally drag & drop the second window to the the left or right side to show both views next to each other.
Et voila, there you have it :)
EDIT
It seems that this function is not implemented in all version of VS.
In my case (V 15.4.2 (2017), V 15.9.7 (2017) & V 16.2.5 (2019)) it just works fine.
Only vertically that I'm aware. When looking at the code, right above the vertical scroll bar is a small rectangle, drag it down to get a split view of the file.
You simply use the small drag arrows icon at the top right corner of your file window as depicted in the following screenshots:
1) View the same document side-by-side (with a fix for Visual Studio 2017)
It is possible to do this using New Window and New Vertical Tab Group, however, in my Visual Studio 2017 the New Window command was missing from the Window menu. To use it, first you must add the command to a menu or assign a shortcut to it.
To add New Window to your Window menu follow this sequence, starting with the Tools menu:
Tools > Customize > Commands > Menu Bar > Window > Add Command > Window > New Window
FYI In the Commands step you decide where to put the New Window command. The sequence I gave above puts it unceremoniously at the top of the Window menu.
To view the same document side-by-side
Open the document you want to view side-by-side
Select your recently added New Window command (perhaps it's in Window > New Window)
Right click the new tab and select New Vertical Tab Group or select that command from the Window menu
2) View the same document above-one-another
If you wish to view the same document in two views on top of each other use the Window > Split command or click-and-drag the double-arrow at the top of the scroll bar for any window.
3) Get creative
FYI You can even combine the two view options to have three, four or even more views of the same document on a particularly wide monitor. On mine (2560 x 1080) I can comfortably get three side-by-side views going and split them vertically, if desired.
One can install VsVim extension and :sp :vsp does the trick.
In Visual Studio 15 you can just click inside the document and then "Window → Split"

Resources