Visual Studio 2012: change setting for "Enable floating tab wells"
Asked Answered
P

3

27

I'm having troubles with VS2012 and code opened in separate windows.

See this screenshot: enter image description here

Main windows is open, another window is open (Source Control explorer is just an example for the screenshot, I get the same behavior with source code files). I used to get two items on the task bar for the Visual Studio. Now it is only one.

There is a setting for this: enter image description here

But I can't get it undone. Every time I un-check this setting, I get a flicker of another item in task bar, but it goes away immediately. Then I go back to the same settings, the checkbox next to "Floating tab wells always stay on top" is checked again! That is very annoying.

I have traced the setting to a registry setting HKCU\Software\Microsoft\VisualStudio\11.0\DialogPage\Microsoft.VisualStudio.Platform.WindowManagement.Options.TabsAndWindowsOptionsPage\EnableIndependentTabWell and tried setting it to True (it was False) when VS was not running. But as soon as VS is started, this is switched to False again.

I have installed Power Tools for 2012 - that has some setting for custom tab wells, but I have removed that extension now. I believe the extension caused the issue, but why does it persist after un-installing of the extension? And how do I fix it?

UPD: When I run VS in safemode (via devenv /safemode) that setting is persisted. But as soon as I run normal mode, it is changed automatically.

UPD 2: Resharper 7.1 is to blame. This issue caused by this bug. To enable floating tabs going under do the following: this scenarios require switching the “always on top” option off, you can work around ReSharper behavior by mounting settings file to your ReSharper settings (ReSharper | Manage Options | Add Layer) Please note that this may lead to incorrect behavior of ReSharper functionality in floating windows. Via Resharper forum

File AllowFloatingTabWells.DotSettings

<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  <s:Boolean x:Key="/Default/Housekeeping/SuppressOwnerlessFloatingWindows/IsDisablingIndependentFloating/@EntryValue">False</s:Boolean>
</wpf:ResourceDictionary>
Puerility answered 15/11, 2012 at 11:28 Comment(0)
C
22

Are you using Resharper? Then this might explain the problem. Just search for floating in the following website: http://blogs.jetbrains.com/dotnet/2012/09/resharper-71-early-access-is-open/

Cystolith answered 15/11, 2012 at 11:50 Comment(4)
Yep, Resharper is the one to blamePuerility
Still persists in 8.1.Philippic
Still persists for 8.2.Snowbird
Resharepr 9 and the problem is still there.Puerility
J
6

Following instructions from a blog post on the resharper website, Create a .DotSettings file with this code in it:

<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  <s:Boolean x:Key="/Default/Housekeeping/SuppressOwnerlessFloatingWindows/IsDisablingIndependentFloating/@EntryValue">False</s:Boolean>
</wpf:ResourceDictionary>

In visual studio, go to Resharper -> Manage Options -> Add Layer. Find this file and add it.

Jasen answered 4/9, 2014 at 19:3 Comment(0)
V
0

Window Shortcuts

Below is the list of keyboard shortcuts to control the active window:

  • Minimize window Alt + F2
  • Maximize/restore window Alt + F3
  • Maximize window vertically Alt + F5
  • Maximize window horizontally Alt + F6
  • Toggle “Always on top” Win + A
  • Hide window Win + Q
  • Minimize to tray Win + F2
  • Unhide/Restore from tray Win + F3
Vendue answered 10/12, 2014 at 21:17 Comment(1)
How is that relevant?Puerility

© 2022 - 2024 — McMap. All rights reserved.