Reputation: 9851
Does anyone know how to add the current time to either the status bar in VS2015 or the menu bar?
I always have my Windows task bar set to auto hide and would like to see the current time while coding. (I don't wear a watch as a rule)
Upvotes: 0
Views: 119
Reputation: 2109
You'll need to build a VSSDK package and invoke IVsStatusBar.SetText periodically. Additionally, I'd consider implementing and registering an IOleComponent interface, so that the FDoIdle method is invoked periodically, and call IVsStatusBar.SetText from there.
Searching on http://github, on IVsStatusBar should pull up a few examples that do this.
Upvotes: 1