VS2010 Find In Solution Explorer Hotkey/Toolbar Button

First I found this blog post – which worked but only after some tinkering.  There is a comment there that describes a better (simpler) solution, IMO.

Step 1: Create the following macro, which simply toggles (twice) the existing TrackActivityinSolutionExplorer command – this is the same command that happens if you turn on solution explorer tracking in Visual Studio options, except here we’re turning it on and then immediately off:

Public Sub SelectCurrentItemInSolutionExplorer()
  DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer")
  DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer")
End Sub

Step 2: Create a toolbar button to run this macro.  To do this, right click on the toolbar and click customize.  Click “New…” to create a new toolbar, I took the default name of “Custom 1”.  Go to the “Commands” tab and click the “Toolbar” radio button, select your new toolbar from the dropdown list.  Click “Add Command…”, select Macros from the categories list and select your new “SelectCurrentItemInSolutionExplorer” macro as the command.  Click “OK'”, then you can “Modify Selection” to give it a custom name or image.

Technorati Tags: ,

Print | posted on Wednesday, August 31, 2011 10:29 AM

Feedback

# re: VS2010 Find In Solution Explorer Hotkey/Toolbar Button

Left by Service Παιχνιδομηχανων at 2/20/2012 8:33 AM
Gravatar I am lucky that I discovered this web site, just the right info that I was searching for!

# re: VS2010 Find In Solution Explorer Hotkey/Toolbar Button

Left by event organizer di jakarta bogor at 2/29/2012 6:23 PM
Gravatar
online.bisnis64@yahoo.co.id
http://eventorganizerdjakarta.com
Padahal sebenarnya dalam SE-97/PJ/2011 hanyalah mengatur mengenai perlakuan mengenai pembentukan dan pemupukan dana cadangan premi bagi Wajib Pajak Asuransi Jiwa yang dapat dikurangkan dari penghasilan bruto dalam menghitung PPh Terutang. Dalam SE-97/PJ/2011 ini hanya menegaskan kembali bahwa cadangan premi asuransi jiwa dalam bentuk investasi Unit Link event organizer di jakarta bogor depok bekasi bandung, adalah tidak dapat dikurangkan dari penghasilan bruto dalam menghitung PPh terutang karena karena Penghasilan yang diterima oleh jenis asuransi jiwa Unit Link ini telah dikenakan PPh yang bersifat final dan/atau yang bukan merupakan objek pajak.

Your comment:





 
 

Copyright © Lance Robinson

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski