-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to pin tabs similar to Visual Studio #12622
Comments
Would love this too, this is how I manage my tabs in 'visual studio full'. I am finding it somewhat hard to live without as the files that open during my normal flow are getting in the way. |
I am agree, it would be nice |
We already have functionality for this. Opening a file from the file explorer with a single or double click does what happens with a pin in Visual Studio. I'd vote to close this issue, and open another making how the tabs are handled clearer. Perhaps adding a pin icon on the window tabs are marked "Keep Open". |
@wonea Visual Studio has option to keep pinned tabs separate from open tabs (and on the different row). Such option would be great to have in Visual Studio Code. Perhaps that should be a separate ticket. |
@asednev Exactly. I'd say VS Code could actually improve on Visual Studio by keeping the current behaviour, but additionally allowing tabs to be "top pinned" or something, which would put them in a row above the rest of the tabs (ie. the regular Visual Studio pin behaviour). |
Another vote for the pinned tabs in a top row. This helps greatly to work on the "main" files when you end up open a lot of files. |
Pinned tabs are very good feature which we must to have |
I wrote a little VSCode extension to solve a similar problem. It's called Workbench: https://github.com/andrew-lis/Workbench |
I keep closing tabs by accident, it would be nice to have this feature available (Like Google Chrome does) |
Created intersecting issue: #32836 |
yes, for the love of all that is holy add it. |
+1 |
I am shocked that this feature hasn't been implemented yet, I assumed a simple Google Search would yield some setting I need to turn on. I can't say exactly what the productivity cost is, but I sometimes have up to 30-40 pins in Visual Studio and it makes life so easy. Whenever this is added I will be super happy, VS Code dev team. |
+1 |
As exciting as unexpected! Even if I think a second row is a must have, I completely understand your approach. I cannot say thank you enough! |
@bpasero Thanks for the update on the feature! My main feedback is that I believe it's critical to allow users to have pinned tabs on a separate row:
|
Thank you, looks great! How is the behaviour when closing multiple tabs? |
Pinned tabs can be moved in and out to pin or unpin. The drop feedback will indicate what happens (e.g. if you drop on a pinned tab, the tab will be pinned and vice versa).
The only way to close a pinned tab is by explicitly closing it (e.g. via |
Awesome work @bpasero ! Exited to see this in VS Code! It's important to get this first version out there, after which enhancements (for example, the separate row) can be implemented. |
Insiders is now updated with these changes: https://code.visualstudio.com/insiders/ To pin a tab you can either:
|
I work in a full MS stack but for my client-side work I really prefer working in something lighter like VS Code. It made me sad how much pinned tabs was a deal breaker. From fellow software engineers to software engineers, thank you! |
Wow, this is great! I know this is still early in development, but would be great to have an option to pin files and keep the filename visible. Lot of times I just pin things that I just want to keep open indefinitely but it gets tough to know which is which if I have multiple files of a specific type pinned. |
Hiding pinned tab filename can be an issue, As most files in a project will be of same type, And we cannot distinguish them by just looking at icon |
I agree. A second row for the pinned tabs would be more useful for me.
|
For what it's worth I would prefer the behavior to match regular Visual Studio - making the tabs "sticky" to the left, but retaining the full file name. Heh, I can't say I've ever used the "2nd row" behavior in Visual Studio for pinned tabs :-P |
All I want from pinned tabs is that they don't go away when I do a "close all" or "close others" type operation, and also don't get closed automatically if I go over |
Pinned tabs will behave as such:
|
I think my opinion should also see the file name on a fixed tab. |
In some cases, it might be useful to show just an icon with the first letter of the filename in it (like default avatars showing a user's initials on various platforms). |
I wonder if one setting should be there where you can simply put the size of a pinned tab (currently it is Btw if you have not seen pinned tabs without icons enabled, they pick the first letter of the file name: |
How about adding the icon as a badge on the bottom right corner of the tab. Just a thought... |
Do you mean to always do that independent from the icon setting or only in this case? I think if the user has chosen to disable icons we should not show them and in the other case, I am not sure if a small badge has sufficient visibility to tell files apart.
I am not sure I understand that idea. Can you give an example? |
Actually, I did not know you could disable icons. 😄 Here is a quick mockup. Yes, the "bagdes" might be a little smaller once implemented. I guess we will have to see how this will look in reality. Regarding the width of pinned tab. |
I'd be happy if I could chose icon + x characters from the file name, preferably without '…' because it just wastes space. So you can have: This doesn't require big layout changes and makes it possible to adjust for every codebase and user. |
Really? It has no limit on tab with? Well... that's good in a way. But also... bad. Is there a setting for that? And yes, they would have different sizes, but if you set it to say 4 characters it would only differ slightly. To unify the widths, I would experiment with fixing the tab width to |
You can configure |
@bpasero Really glad to see things thing are moving forward with this! To add my view on this, I also believe it would be better to show the full name of the file on the tab by default. Having just the icon when you're working exclusively with cs or js file for example would make it hard to interact with. On a side note, have you already created the ticket to talk about the dedicated row for pinned tab by any chance? |
I extracted the following issues:
On top of that I created a test plan item (#98019) where people can see the current implemented set of features. I suggest to file new issues if something is not covered by the existing issues I opened. @jez9999 if there are no objections I would go ahead and close this issue and continue the remaining parts in the referenced issues. I realize that this issue has gotten a ton of upvotes and explicitly asks for the VS way ("Add option to pin tabs similar to Visual Studio") but would ask for moving votes and discussions into the follow up issues I created. |
There should be an option in Visual Studio Code to pin tabs, like you can in Visual Studio.
As with issue #10739 there should be a config option allowing you to hide the "pin tab" icon in the tab itself if you just want to use the right-click menu or shortcut to pin/unpin tabs.
There should also be an option (again, like in Visual Studio) where pinned tabs are put onto a separate line above the other tabs.
The text was updated successfully, but these errors were encountered: