VS2010 docks code windows in the wrong place - visual-studio-2010

When I double click on an entry in my Error List or Find Results list in VS2010, it docks the newly opened source code file not in the large window where all my other source files go, but in the small narrow window at the bottom along with the error list etc.
How can I get it to put it up with the others by default?
If I double-click an item in Solution explorer it puts it in the right place

I got things back to normal by using the Window | Reset Window Layout menu option. I noticed that now the tabs for "Error List" "Output" "Pending Changes" etc were now at the bottom of their docked window rather than the top. I think I somehow or other must have created a second code window area and docked my error list window etc into that.
Incorrectly docked (tabs at the top):
Correctly docked (tabs at the bottom):

I too had this problem and now found the cause: if you move the bottom window pane a visual guide is shown on which you can dock them to various places. For the bottom two visual options are shown - one where the pane will be part of the upper pane and one were it will be placed below the upper pane. The second choice gives a proper behavior wereas the first one gives you the tab titles at the top and doesn't work.
I think this is very annoying because it happens from time to time that I accidentally drag the pane. (I'm using a tablet) Probably this dragging is the cause for the trouble.

I was having the same issue but, for a number of reasons, didnt want to reset all my settings.
I draged all the open windows from the bottom panel area so they were floating, closed the find results window, redocked the error and output windows, then did a search (find in files) and the new floating window popped up, I then docked this to the same area that errors and output were in and when I double clicked on a file in the results window it opened in the right place.
I hope this works for you to and anyone else experiencing this issue...

I couldn't find the Window -> Reset Window Layout option. The above answers helped me understand, the problem was with me having moved around my windows. What finally helped me was the little symbols on the top right corner of the find results window. Instead of the usual 'Inverted triangle'+'Pushpin'+'x' symbols, what I saw was just the Inverted Triangle, which meant I docked the find results window in the main file docking area. So, when I moved it to the bottom docking area in Visual studio, it worked for me.

Related

Reset perspective in R Studio?

I'm pretty new to R programming. I'm using R studio, and all of a sudden it's no longer showing the workspace, it's only showing the console.
This is what it is supposed to look like
And this is what mine looks like now.
In Eclipse, whenever the workspace gets out of wack, I can just reset the perspective and everything it back to normal. I can't figure out how to do that in R Studio.
The default layout seemed to disappear after I restarted my computer.
Go to View > Panes > Show all panes
Opening a script file should split the windows horizontaly. If that doesn't work, click on the icon on the top-right corner of the RStudio window showing to windows:
This should at least show the console and file panels.
To restore the side panels, move your cursor to the extreme right of the window, until the cross arrows cursor appears (), and drag it to the middle of the screen.
For all panes to be shown, go to View-> Panes and tick show all panes.
Otherwise, ctrl+Shift+Alt+0 also worked for me.
Thank you.
Can you try saving an image of your workspace? Below are a couple of links that might help.
Workspace link 1
Workspace link 2
My computer is set up already in such a way that it automatically loads up the previous workspace I decided to save. A more qualified person would be able to tell you how and why it retrieves the previous saved image instead of a blank one like yours.
I also just got stuck for some time with the vertical split of the panes malfunctioning. I was always stuck with just 2 out of 4 panes.
I'm a pretty confident RStudio user and I tried many things like 'show all panes', moving panes around, clicking the 'hide-window', 'enlarge-window' and 'double-window' icons.
In the end I realised that the panes that were minimized didn't actually have the bar with the title. Instead these we only lines of 1 pixel height.
The solution for me was to expand the bottom panes and then hover near the 1 pixel height line at the top. This changed the cursor into the hand-cursor, which allowed me to drag the top window down, and back into view with the other pane.

How to increase RStudio editor size?

In Eclipse, I am able to do Ctrl+M while I am typing in the editor to full-screen the editor and temporarily hide all the side-windows. Is there a way to achieve this in RStudio? The code editor portion of the window is very small and yet I don't feel like manually fiddling with the mouse to resize my console/plots/workspace windows.
The view menu doesn't offer much else than zooming in/out.
All shortcuts Alt+Shift+K
You can make the editor fill up the entire rstudio window with Ctrl+Shift+1. Also to restore.
To move between the panes, the shortcut is CTRL + number.
1 - source
2 - console
Adding shift to the shortcut makes that pane fill up the spaces.
The best solution I've found is to use a "source window", i.e. pop out the editor into a separate window temporarily:
This window can then be expanded to fill the whole screen:
Only way I know how is to click on the right hand side of the title bar of the source code section where it has 2 windows symbols. The right-most one expands the code window to the entire left hand side.
Instructions and documentation below from the R studio manual:
http://www.rstudio.com/ide/docs/using/console
If you're running on Linux, you can install RStudio Server, just for use on the same computer. It's almost exactly like the regular RStudio, but inside a browser. I prefer it because I can full screen, and can use the browser's Find in the console.

'Property pages' tab is missing in VS2010

On the right of VS2010, there is normally a group of tabs, like the solution explorer and the property pages tab. It seems that the tab to access the property pages is missing.. How can I get it back? This must be easy.
The tabs will only appear if more than one window is docked at the same spot. If you don't see them then you either have undocked the window or closed them. Closing be the more likely case here, use the View menu to get them back. Or Windows + Reset Window Layout if you're completely lost.
Click on the Project name in the Solution Explorer and then press F4. The Properties window/tab should now appear.
Note that this Properties tab is different than the one shown if you right click the project name and then click "Properties."
Under View Dropdown menu, should be there.
Or right click on the app in design mode and click properties.
Close your visual studio and open the Visual Studio Command Prompt (from window Start -> Programs -> Visual Studio XXXX -> Visual Studio XXXX Tools) and enter "devenv /setup".
If you want to dock one below the other it's a two step operation. You need to start with the two windows not connected together at all.
1) dock the first window on the right hand side of the application. This should fill all of the vertical space available.
2) make sure the second window is floating then drag it towards the first. When the arrows appear move the mouse over the down arrow and the second window should snap below the first.

How do I show the description box of the properties window in Visual Studio 2010 if it is hidden?

How do I show the description box of the properties window in Visual Studio 2010 if it is hidden?
For example, the following image shows the description box. It reads "Load: Occurs whenever the user loads the form."
I had the same problem and it was caused by the description box lenght having been dragged to zero. To solve the problem I had to un-dock the properties box and resize it as long as possible. It is then just possible to find the verticle resize cursor at the bottom and resize the box.
Right click and select "Description" menu item.
If the suggestion by Alex doesn't work, an alternative is to click WINDOW > Reset Window Layout.
Warning: This will reset every window so best used only as a last resort.
Another potential solution that worked for me.
Righ-click on the Properties Window and uncheck the Description in the popup menu. If it's not checked, then go to the next step.
Exit VS and launch again.
Load your project/solution then select an object on your design surface, right-click and select properties.
In the Properties window, right-click, and in the popup menu, check the Description item. The Descrip[tion area should open up and display a description.
I had the same problem, that is why I ended up reading this. I tried the right click and unchecked the option for description, and rechecked it. didn't help. I then moved my mouse over the very bottom of the little window pane and saw a cursor that looked 2 arrows over a horizontal line here is a picture of arrow. By dragging that line up, I was able to get my descriptions back.
Just had the same problem in an ASP.NET project and solved by rendering the .aspx page clicking the Design bottom left button, then when I returned to the Source view the descriptions now appeared.
A bit extreme, but after trying everything, this is what worked for me:
Download Window Detective
Undock and Maximize the Properties Window
Pick the Properties Window with Window Detective, and look for the Description Pane in the hierarchy
Flash the Description Pane to find out where it is
Set its WS_CAPTION and WS_THICKFRAME styles on
Resize the Description Pane to give it some height :)
Set its WS_CAPTION and WS_THICKFRAME styles off
Redock the Property Window.
Everybody happy

Visual Studio Clicking Find Results Opens Code in Wrong Window

I'm using Visual Studio 2010 and when I do a "Find in Files" the results are returned to the "Find Results 1" window which is docked below my code editor window.
Before, I would double click on one of the results in the Find Results window and the file I clicked on would open in the code editor panel.
The problem is now when I click on one of the results, it opens in the same panel as the Find Results window which happens to be much smaller than the code editor window which is annoying.
Does anyone know how to make it so that when I double click on the search results they open up in the code editor window again?
Thanks!
Click Window → Reset Window Layout
Works for VS2013 Update 4 and all newer versions, including VS2019.
I thought I had this problem but it was easily fixed by docking the Find Results window using the very bottom of the window position selectors.
The files open in the same position as the Find Results when the window is docked in the positions immediately next to the centre position.
This is also being discussed here:
VS2010 docks code windows in the wrong place
Go the same... irritating... I realized that this unwanted behavior happened only while the app was running in debug. After I stopped debugging, a new panel was created with this file open in it. If I opened new files, they would open in this new panel. If I close all files in this new panel, opening new files from the "Find In Files" open in the standard code editor window (as long as the app is not running).
I had this problem also. I experienced the problem in VS2013. I did not want to do "Window -> Reset Window Layout" because it seemed like that was going to do other stuff that I did not want it to do.
Here was my solution:
I noticed the problem in VS2013 in which I had project "A" open.
I opened another copy of VS2013 and opened project "B".
I closed the copy of VS2013 that was exhibiting the annoying behavior: project A.
I closed the copy of VS2013 that had project B open.
This saved the settings from the "good" copy.
Opened project A in VS2013 and all was well.
Obviously, the caveat is that this requires you notice the problem before you close VS2013. But if you do notice it in time, this is a pretty easy solution.
For those who do not want to dock their "Find Results", "Error List", "Output",... windows to the right, and for those the above answer which is Window->Reset Window Layout doesn't work: may be you are trying to dock wrong place! You should dock these windows to very bottom. Refer here: https://stackoverflow.com/a/2735726/6176317
For me, this was happening with a Visual Studio window containing an SQL file with the Window Split option active. If the cursor was in the top pane of the window, both Ctrl + F (Find) and Ctrl + H (Find & Replace) would cause the find control to appear in the other (main) Visual Studio window. Moving the SQL window into the main window just caused Find and Find & Replace to display the "Find in Files" dialog instead until another tab was selected.
The workaround was to place the cursor in the bottom pane which caused both Find and Find & Replace to work correctly in that pane of that window. Unfortunately as long as the Window Split is there, the bug is still there in the top pane.

Resources