Geeks With Blogs

News

qrcode

Lance Robinson

Create Your Badge

Lance Robinson is a software engineer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.

 Subscribe


Lance's TextBox » About Me » My Resume »Twitter

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: ,
Posted on Wednesday, August 31, 2011 10:29 AM | Back to top


Comments on this post: VS2010 Find In Solution Explorer Hotkey/Toolbar Button

# re: VS2010 Find In Solution Explorer Hotkey/Toolbar Button
Requesting Gravatar...
I am lucky that I discovered this web site, just the right info that I was searching for!
Left by Service Παιχνιδομηχανων on Feb 20, 2012 8:33 AM

# re: VS2010 Find In Solution Explorer Hotkey/Toolbar Button
Requesting 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.
Left by event organizer di jakarta bogor on Feb 29, 2012 6:23 PM

Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net | Join free