You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we could configure the information that gets displayed in the title bar. I use ManicTime a lot, and it's hard to auto tag my activities when the title bar basically only displays the file name and root folder name. Having the full path to the file and the git branch name would be super helpful.
Reacted by Yauhen Shulitski, Robin Munn, Nate Rogers, Holger Dormann, Walter Macambira, Dan Brakeley, Alessandro Fragnani, Mitchell Lawson-Burton, James Treworgy, Tommy Santerre and 12 more
Benjamin Pasero (@bpasero) By assigning this to yourself, does that mean it might happen? If so, please let me know if you would like some help, even if it's just for feedback.
+1. The more I use VS Code on bigger projects, it's becoming frustrating to be unable to distinguish between open windows. I wish I could configure the title to just show [Root Folder] - [File], since it's hard to distinguish between open projects when the file name is shown first. But some simple templating system would probably solve everyone's problem.
Reacted by Róbson Rosa, Walter Macambira, gilboa23, Mitchell Lawson-Burton, harryjrk, BruceBissett, Eugene S., Dimitar Tasev, kuechlerm, Calle Gustafsson and 4 more
Benjamin Pasero (@bpasero) i do appreciate the effort but actually this still does not address the issue (at least as far as Windows) is concerned. It may actually make it worse (though since it's an option that's not an issue).
The problem is that in Windows, the taskbar shows a preview of all windows for a given application, and there is only limited space to show the title. Showing the full path would give me exactly the opposite problem I have now: I'd just see the part of the path, starting with the root, that fits in the display. So with this enabled, I'd most likely have no information at all about which window was which, since they likely all share a common root path.
What is really needed is the ability to show project-root/../filename or project-root * filename. The parent folder is nearly always the identifying feature for a project. I don't even care if the filename gets cut off- because I really just want to be able to determine which project is open from the title bar.
In the example below the only one I can tell which project is open is iter8 because the file name happens to be very short. But even when it's visible, it's hard to visually parse because it's not aligned to anything. I want the project root folder on the left (instead of after the filename) so it is always visible.
James Treworgy (@jamietre) we can still tweak this experience and I welcome the problem description you gave, though I am not sure how to best solve it.
Here is how your scenario looks like without the new option enabled:
And here with the option turned on:
This makes it hard to see the currently opened file but you can easily see the full path when you compare the 2 window titles in full (not from this experience).
I think this feature request is still valid for that particular scenario because you could then really compose the title you want, I am not sure we should change the experience by default with the new option.
I am open for suggestions though if the default experience when this new option is turned on should be changed.
Thanks for all the feedback, it's very appreciated.
In my case almost all my code is under a single heirarchy like d:/users/jtreworgy/code/... -- so if I were lucky I might get a few characters of the root folder. But I also work in subfolders with groups of projects, too, so it would be quite realistic for there to be nothing unique at all. I could try to keep everything under shallow heirarchies but I guess I'd rather not have to design my file system architecture around accomodating VS Code ;)
The perfect world for me would be the ability to pass a template like "{rootFolder} - {fileName}" instead of boolean options for predefined templates. Just having rootFolder, fileName and fullPath as available parameters would accomodate everything that's been discussed here as well as the current state.
Even more perfect world, the ability to invoke a javascript function that I wrote to return my title given the path as input :) but then I've written a plugin haven't I..
Pro tip: You won't see the setting changes when editing the settings file. You have to switch to another file in your workspace to see the changes you've made in the settings. Not sure why that is exactly.
Hmm.. now we just need this feature for the "recent window" list, which just shows the folder name for me, which isn't specific enough (lots of "main" listed in there)
Small update, I added ${activeFilePathRelative} to be able to show a shorter path to the active opened file if the file is from within the workspace opened. E.g. instead of /Users/Development/myProject/myFolder/myFile.txt showing myFolder/myFile.txt if myFolder is opened. Together with ${rootName} this allows to show a file path as myProject/myFolder/myFile.txt if desired.
Another update after feedback from testing during this week from the team: ${activeFilePath} and ${activeFilePathRelative} are working only if a file is opened, making the configuration of the window.title hard when non-file editors are opened.
I decided to revisit the variables around file paths and change them because things are getting complicated when an editor is not showing a file.
Here is my new solution:
${activeEditorLong}: e.g. /Users/Development/myProject/myFolder/myFile.txt
${activeEditorMedium}: e.g. myFolder/myFile.txt
${activeEditorShort}: e.g. myFile.txt
If there is no long editor label, the medium one will be used. And the same is true for medium and short.
Basically:
replace ${activeFilePath} with ${activeEditorLong}
replace ${activeFilePathRelative} with ${activeEditorMedium}
I hope this works for everyone, should be available in today's insider build.
Benjamin Pasero (@bpasero) is there a way to remove the [Unsupported] suffix in the title, when vscode has a modified installation (I'm using custom CSS)?
Looks like MyFancyProject [Unsupported] in the title bar.
No, we strongly advice against using extensions that modify our bits so it is in the best interest to show this not only to you as a user but also to us when we have to investigate bugs which are caused by extensions that patch our bits.
Activity
[-]More information in the title bar, please. [/-][+]Allow to configure title bar information[/+]alexdresko commentedon Apr 1, 2016
Benjamin Pasero (@bpasero) By assigning this to yourself, does that mean it might happen? If so, please let me know if you would like some help, even if it's just for feedback.
bpasero commentedon Apr 2, 2016
This issue is currently assigned to the backlog. Every sprint we pick items from the backlog to plan for the current iteration. Please see https://github.com/Microsoft/vscode/wiki/Issue-Tracking#planning
jamietre commentedon Aug 9, 2016
+1. The more I use VS Code on bigger projects, it's becoming frustrating to be unable to distinguish between open windows. I wish I could configure the title to just show [Root Folder] - [File], since it's hard to distinguish between open projects when the file name is shown first. But some simple templating system would probably solve everyone's problem.
bpasero commentedon Nov 1, 2016
#12625 for the issue to show the full path in the title bar. This might resolve many (but not all) concerns of this issue.
jamietre commentedon Nov 2, 2016
Benjamin Pasero (@bpasero) i do appreciate the effort but actually this still does not address the issue (at least as far as Windows) is concerned. It may actually make it worse (though since it's an option that's not an issue).
The problem is that in Windows, the taskbar shows a preview of all windows for a given application, and there is only limited space to show the title. Showing the full path would give me exactly the opposite problem I have now: I'd just see the part of the path, starting with the root, that fits in the display. So with this enabled, I'd most likely have no information at all about which window was which, since they likely all share a common root path.
What is really needed is the ability to show
project-root/../filenameorproject-root * filename. The parent folder is nearly always the identifying feature for a project. I don't even care if the filename gets cut off- because I really just want to be able to determine which project is open from the title bar.In the example below the only one I can tell which project is open is
iter8because the file name happens to be very short. But even when it's visible, it's hard to visually parse because it's not aligned to anything. I want the project root folder on the left (instead of after the filename) so it is always visible.bpasero commentedon Nov 2, 2016
James Treworgy (@jamietre) we can still tweak this experience and I welcome the problem description you gave, though I am not sure how to best solve it.
Here is how your scenario looks like without the new option enabled:
And here with the option turned on:
This makes it hard to see the currently opened file but you can easily see the full path when you compare the 2 window titles in full (not from this experience).
I think this feature request is still valid for that particular scenario because you could then really compose the title you want, I am not sure we should change the experience by default with the new option.
I am open for suggestions though if the default experience when this new option is turned on should be changed.
jamietre commentedon Nov 2, 2016
Thanks for all the feedback, it's very appreciated.
In my case almost all my code is under a single heirarchy like
d:/users/jtreworgy/code/...-- so if I were lucky I might get a few characters of the root folder. But I also work in subfolders with groups of projects, too, so it would be quite realistic for there to be nothing unique at all. I could try to keep everything under shallow heirarchies but I guess I'd rather not have to design my file system architecture around accomodating VS Code ;)The perfect world for me would be the ability to pass a template like
"{rootFolder} - {fileName}" instead of boolean options for predefined templates. Just havingrootFolder,fileNameandfullPathas available parameters would accomodate everything that's been discussed here as well as the current state.Even more perfect world, the ability to invoke a javascript function that I wrote to return my title given the path as input :) but then I've written a plugin haven't I..
27 remaining items
tommck commentedon Feb 15, 2017
UPDATE: Ignore this - not a problem
This doesn't seem to be working for me. I'm not seeing the file name first.. just seeing
"C:\Path\To\Project - Visual Studio Code - Insiders"
I restarted the app and opened various files.
Also, does it require a restart to work? Kind of hard to test what you're doing that way
alexdresko commentedon Feb 15, 2017
Pro tip: You won't see the setting changes when editing the settings file. You have to switch to another file in your workspace to see the changes you've made in the settings. Not sure why that is exactly.
And it does not require a restart.
tommck commentedon Feb 15, 2017
The tooltip help for it isn't formatting properly either :)
Should I open a bug?
tommck commentedon Feb 15, 2017
Huh.. I think it's actually updating, but taking a LONG time to do so on this machine. So, I think my problem with the title bar is not a problem.
tommck commentedon Feb 15, 2017
Hmm.. now we just need this feature for the "recent window" list, which just shows the folder name for me, which isn't specific enough (lots of "main" listed in there)
bpasero commentedon Feb 22, 2017
Small update, I added
${activeFilePathRelative}to be able to show a shorter path to the active opened file if the file is from within the workspace opened. E.g. instead of/Users/Development/myProject/myFolder/myFile.txtshowingmyFolder/myFile.txtifmyFolderis opened. Together with${rootName}this allows to show a file path asmyProject/myFolder/myFile.txtif desired.bpasero commentedon Feb 24, 2017
Another update after feedback from testing during this week from the team:
${activeFilePath}and${activeFilePathRelative}are working only if a file is opened, making the configuration of thewindow.titlehard when non-file editors are opened.I decided to revisit the variables around file paths and change them because things are getting complicated when an editor is not showing a file.
Here is my new solution:
${activeEditorLong}: e.g. /Users/Development/myProject/myFolder/myFile.txt${activeEditorMedium}: e.g. myFolder/myFile.txt${activeEditorShort}: e.g. myFile.txtIf there is no long editor label, the medium one will be used. And the same is true for medium and short.
Basically:
${activeFilePath}with${activeEditorLong}${activeFilePathRelative}with${activeEditorMedium}I hope this works for everyone, should be available in today's insider build.
nfour commentedon Feb 24, 2017
Benjamin Pasero (@bpasero) is there a way to remove the
[Unsupported]suffix in the title, when vscode has a modified installation (I'm using custom CSS)?Looks like
MyFancyProject [Unsupported]in the title bar.bpasero commentedon Feb 24, 2017
No, we strongly advice against using extensions that modify our bits so it is in the best interest to show this not only to you as a user but also to us when we have to investigate bugs which are caused by extensions that patch our bits.
VojtechVitek commentedon Mar 22, 2017
Benjamin Pasero (@bpasero)
"window.title"is a neat addition, thanks. Can we have something similar for tabs?I'd love to see the last directory name as a prefix to the filename on all tabs.
Vim tabs are very smart about tab names btw.
bpasero commentedon Mar 23, 2017
Yeah this was reported already as feature request.
nileshp87 commentedon Apr 26, 2017
I made a quick extension for setting the title for the workspace: https://marketplace.visualstudio.com/items?itemName=nilpatel.title
Those who find this thread may find it useful.
VojtechVitek commentedon Apr 26, 2017
Nilesh (@nileshp87) works great, thank you!