mayerwin / vs-customize-window-title

Customize Visual Studio Window Title - Visual Studio Extension
https://marketplace.visualstudio.com/items?itemName=mayerwin.RenameVisualStudioWindowTitle
MIT License
108 stars 30 forks source link

Show focused tool window? #55

Closed DerekSMorin closed 4 years ago

DerekSMorin commented 4 years ago

Is it possible to show the focused tool window title? I do voice programming and we can set up commands to be available depending on what the window title is. This could be useful for when the terminal is focused, or the find window...

mayerwin commented 4 years ago

Interesting use case, I'll try to implement it in the next release (it shouldn't be very difficult). If this is urgent, feel free to submit a PR.

DerekSMorin commented 4 years ago

Thanks! It's not urgent, but if you implement it I will definitely try it out.

mayerwin commented 4 years ago

Pushing it in today's release as tag [windowName]. Thanks!

DerekSMorin commented 4 years ago

Looks like it is working beautifully! Thanks!

DerekSMorin commented 4 years ago

@mayerwin - it doesn't seem to work for floating tool windows, not sure if that is difficult or not.

Examples: It works for "Terminal" and "Find and Replace" if the windows are docked inside the visual studio window. But if either of them are floating, they don't show up in the window title ( even if they have the focus ).

mayerwin commented 4 years ago

It works on my end for Solution Explorer for example. Do you have a screenshot (and if you can also tell me which pattern you're using)?

mayerwin commented 4 years ago

I cannot see how to create "Terminal" and "Find and Replace" tool windows :/. Are they from an extension?

DerekSMorin commented 4 years ago

I put screenshots with how to bring up the windows using the Command Window. Terminal is fairly new, so depending on your VS version you might not have it. Find window might also look a bit different.

image

image

DerekSMorin commented 4 years ago

image

mayerwin commented 4 years ago

Just tried this on my end with VS 2019 (latest version 16.5.4) and it works well with the Find and Replace window. Did you wait for a few seconds in case there may be some lag? No reason why this tool window would be different than the others. Do you have an open solution in design mode when you're opening this tool window?

For the Terminal Window the command didn't work so my VS version likely doesn't have it. But I think if we can figure out why it doesn't work for you with Find and Replace, it'll probably be the same reason.

DerekSMorin commented 4 years ago

Seems to be working now. I've set it up so I can now see title bar in visual studio. I'll keep my eye on it :)