From the course: Visual Studio Tips and Techniques for Developers

Sort and group your files with vertical tabs - Visual Studio Tutorial

From the course: Visual Studio Tips and Techniques for Developers

Start my 1-month free trial

Sort and group your files with vertical tabs

- [Instructor] Do you ever give much thought to the tab interface that appears at the top of the code editor windows? We use it by opening a file and then clicking on these tabs to switch to the editor and make our changes. This is a common UI metaphor. You see it in browsers, you see it in apps like Excel. I understand that a tab based interface is coming to File Explorer in a future Windows 10 release. And Visual Studio, these can be customized to work better for you. Let's see what's available. To see the settings for the tabs, go to tools options, and then go to environment, tabs and windows. Most of these settings have been around for many versions of Visual Studio for instance, you can change what's called the preview tab. You can also change how pin tabs work. What I want to look at in this video is at the top and these are the recent changes that came out in Visual Studio 2019. For one, we can change the location of the tabs. Instead of having them at the top I can choose to have them on the left or right. Let's add them to the left side of the screen like this and then click on Okay. Now the reason I like having them on the left side this is my personal preference, is that if you have them across the top, you can only fit so many there and then you have to scroll left and right to see the tabs. Whereas there's a lot more room on the left side of the screen to have a vertical layout so I can get many more tabs showing up here in the left than I can across the top without having to scroll. That's why I like it. Now, once you've added them to the left or the right side you can make changes to how it's laid out by clicking on the setting realm. So right now it's starting them out by alphabetical order. I can change it to start by recently opened list. So if you prefer a chronological order, the tabs that are most recent at the top the tabs that you opened a long time ago at the bottom you can choose this view. Or you can switch the order. And you see they're also grouped by project. So I have multiple projects in this solution and I can see that these are the files. These two files are the ones that are inside BigStar collectibles web app. Now, if you don't want to see the groups you can change that by clicking here and choose no grouping. Now there's just one big list of items. And we'll start those by alphabet. I prefer having the group so I'll switch back to the group view. And of course, just like the tabs at the top you can choose to pin your tabs to the top of the list. Or you can choose to close the tabs here and when you open a new file like this it appears in the tablets. The only difference really is the position. So if this appeals to you check out the new settings again, you can set it here. If you haven't to set it back to the top view now you can change it to the left and right by clicking on the settings wheel here. Let's put on the right side just to see what it looks like over there. Do you like this view? I don't. I think I prefer having it on the left side. So let's put it over there and then enjoy your time learning about the new tab settings.

Contents