Lets you specify when Solution Explorer syncs to the current itemtinyurl: http://tinyurl.com/solexp For Visual Studio 2012, use Collapse and Sync - /vsgallery/291836cc-febe-44ad-86b0-b745485110e7Adds three buttons to solution explorer
Note: Make sure you turn off "Track Active Item in Solution Explorer" (Options -> Projects and solutions) For a great description, check out Sara Ford's write up about this extension at http://saraford.net/2010/09/16/solution-explorer-tools-when-to-sync-to-current-file-extension-11/ She explains it much better than I do. More info:For me "Track Active Item" quickly expands too much in the solution explorer. It also is really annoying when you are about to add a new file, quickly check something in a file and it's completely changed where you were. But not tracking at all is even worse, I often want to see the context that I'm working in, and digging around the solution explorer is not fun. This extension is the solution. Keyboard ShortcutsAt the moment I haven't assigned any default shortcut keys but you can assign them yourself. The keys to find them are
Future of this extensionAs most of the behaviour is avalible by default in VS11, this extension will not be made VS11 compatible, it also makes me very cautious about maintaining it for VS2010. I'm not going to remove it, but I doubt you'll see any more work done on it. The big feature VS11 doesn't have is "collapse and sync". However, since it has these 2 as individual commands it won't be hard to make a simple extension to do this. Expect it as a different extension. Log:v1.4 Major change is the icons. By no means good, but the old ones were too complicated. They're from when this was a macro and I didn't have them on the solution explorer itself. If anyone wants to send me better icons (which I can legally use) I'll add them to the project. v1.5 Fixed bug which didn't select the item in special cases v1.6 Allow keybord shortcuts to be added. No default ones assigned yet. v1.7 Assigned Collapse to item to Ctrl + Alt + ; v1.8 New Icons v1.9 Accidently introduced some testing code. It's now removed. v2.0 Fixed a bug that has been annoying me since this extension was a macro. Thanks to Noah Richards and Matthew Johnson for helping me with this. v2.1 As suggested by Jason Schaeffer, I've added an undo ability. It's not perfect and it can't go more than one undo but I thought I'd get it out there and see what people think. v2.2 Fixed a bug caused by the new Undo feature when you had Unloaded projects. v2.3 Similar bug to the 2.2 was found, so with a very minor change it should be fixed. v2.4 Almost immediately after releasing 2.3 I realised the same error would occur when performing an Undo, this fixes it. |