{"id":246215,"date":"2023-12-04T08:00:36","date_gmt":"2023-12-04T16:00:36","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=246215"},"modified":"2023-12-05T14:38:57","modified_gmt":"2023-12-05T22:38:57","slug":"scroll-to-expand-document-tabs","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/scroll-to-expand-document-tabs\/","title":{"rendered":"Scroll to expand document tabs"},"content":{"rendered":"<p>When you have lots of tabs open in Visual Studio, your horizontal screen resolution determines how many fit in the document tab well. The remaining document tabs are hidden unless you configure Visual Studio to display tabs in multiple rows. Alternatively, you could <a href=\"https:\/\/review.learn.microsoft.com\/help\/onboard\/admin\/reference\/\">switch your tab layout to vertical tabs<\/a> instead of the default horizontal layout. Vertical tabs, of course, isn\u2019t the answer for everyone, and it\u2019s not what we\u2019re going to talk about in today\u2019s blog post!<\/p>\n<p>Going back to multiple tab rows &#8211; enabling this feature and having multiple rows of tabs open will have an impact on your available coding space. What happens if you\u2019re a fan of the horizontal tab layout and want an easier way to get an overview of all your open documents without giving up space in your code editor? Continue reading to learn how we addressed this issue.<\/p>\n<p><figure id=\"attachment_246219\" aria-labelledby=\"figcaption_attachment_246219\" class=\"wp-caption alignnone\" ><img decoding=\"async\" class=\"wp-image-246219\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/a-screenshot-of-a-computer-program-description-au.png\" alt=\"Screenshot of Visual Studio highlighting the tab well showing four tabs in horizontal layout.\" width=\"996\" height=\"345\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/a-screenshot-of-a-computer-program-description-au.png 996w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/a-screenshot-of-a-computer-program-description-au-300x104.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/a-screenshot-of-a-computer-program-description-au-768x266.png 768w\" sizes=\"(max-width: 996px) 100vw, 996px\" \/><figcaption id=\"figcaption_attachment_246219\" class=\"wp-caption-text\">Figure 1: The Tab Well showing a limited number of tabs<\/figcaption><\/figure><\/p>\n<p>You might already be familiar with the experience of hovering over tabs and using the mouse wheel to scroll through them in some browsers and other applications. The\u00a0<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=VisualStudioPlatformTeam.CustomDocumentWell\">Custom Document Well<\/a> extension brought this feature to Visual Studio in older versions. Changes in Visual studio&#8217;s architecture led to the discontinuation of this years ago. We didn\u2019t bring back mouse wheel scrolling in that form after this change due to several reasons, one of the most predominant ones being that the feature had to be reimagined to properly function under the new architecture.<\/p>\n<p>We noticed that a\u00a0<a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Scrollable-open-file-tabs-with-mouse-whe\/353560\">feature request<\/a> for using the mouse scroll wheel had been gaining steam. In response, we decided to do an <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/too-many-tabs-open-no-problem\/\">experiment<\/a> to come up with a solution. The experiment was a success! Its capabilities have been built into Visual Studio 2022 starting in version 17.9 Preview 1.<\/p>\n<h2>How it works<\/h2>\n<p>The first time you have enough tabs open to overflow the tab well, a tooltip shows up in the document tab well. This tip indicates that the mouse scroll wheel can be used to switch between single and multiple tab row styles. If you don\u2019t want to use this feature, just dismiss the notification, and carry on as usual.<\/p>\n<p><figure id=\"attachment_246223\" aria-labelledby=\"figcaption_attachment_246223\" class=\"wp-caption alignnone\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture2.png\"><img decoding=\"async\" class=\"wp-image-246223 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture2.png\" alt=\"A screenshot focusing on the notification bubble that shows when the horizontal tab well is overflowed for the first time.\" width=\"547\" height=\"215\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture2.png 547w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture2-300x118.png 300w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/><\/a><figcaption id=\"figcaption_attachment_246223\" class=\"wp-caption-text\">Figure 2: Tab overflow notification<\/figcaption><\/figure><\/p>\n<p>If you\u2019d like to give it a try, scroll the mouse wheel down. You&#8217;ll notice that Visual Studio will then organize your tabs in multiple rows. This enables the \u201cShow tabs in multiple rows\u201d setting in Tools &gt; Options &gt; Environment &gt; Tabs and Windows and results in an expansion of the tab well to show all open document tabs, making it easy to find any open file.<\/p>\n<p>You can switch back from multiple tab rows by scrolling the mouse wheel up. This collapses the tab well to a single row of tabs and disables the \u201cShow tabs in multiple rows\u201d setting in Tools &gt; Options.<\/p>\n<p><div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-246215-1\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Scroll-Tabs.mp4?_=1\" \/><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Scroll-Tabs.mp4\">https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Scroll-Tabs.mp4<\/a><\/video><\/div><\/p>\n<p>Figure 3: A video demonstrating switching between tab row styles<\/p>\n<p>Note that if you have a tab selected in a row other than the topmost one when you switch back to the single row view, Visual Studio may displace one or more of your least used tabs in the single row to make room to move your selected tab to the rightmost position of the single row view.<\/p>\n<p>To try this out, download or update to the latest preview version of Visual Studio (v17.9 Preview 1 or newer). As always, your feedback is important to us, and we\u2019d love to hear what you think. Please share your thoughts on <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Scrollable-open-file-tabs-with-mouse-whe\/353560\">Developer Community<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you have lots of tabs open in Visual Studio, your horizontal screen resolution determines how many fit in the document tab well. The remaining document tabs are hidden unless you configure Visual Studio to display tabs in multiple rows. Alternatively, you could switch your tab layout to vertical tabs instead of the default horizontal [&hellip;]<\/p>\n","protected":false},"author":649,"featured_media":246219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[],"class_list":["post-246215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio"],"acf":[],"blog_post_summary":"<p>When you have lots of tabs open in Visual Studio, your horizontal screen resolution determines how many fit in the document tab well. The remaining document tabs are hidden unless you configure Visual Studio to display tabs in multiple rows. Alternatively, you could switch your tab layout to vertical tabs instead of the default horizontal [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/246215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/649"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=246215"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/246215\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/246219"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=246215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=246215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=246215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}