Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to convert Macro .vsix for VS2012??

$
0
0

I am one of the guy that think it's a sad news that VS2012 no longer supports Macro... I use macro for create shortcuts that are not provided by the native IDE. From the sound of it a Macro can be converted into a .vsix for VS2012? Also how do we implemented the shortcut?

I couldn't figure out how so I was hoping someone here can show me an example.. 

So for example in my case: 

Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics

Public Module FindExtended
    Sub FindInCurrentDoc()	'Ctrl + Shift + 1, Global
        DTE.ExecuteCommand("Edit.FindinFiles")
        DTE.Find.SearchPath = "Current Document"
    End Sub

    Sub FindInOpenedDocs()	'Ctrl + Shift + 2, Global
        DTE.ExecuteCommand("Edit.FindinFiles")
        DTE.Find.SearchPath = "All Open Documents"
    End Sub

    Sub FindInCurrentProj()	'Ctrl + Shift + 3, Global
        DTE.ExecuteCommand("Edit.FindinFiles")
        DTE.Find.SearchPath = "Current Project"
    End Sub

    Sub FindInEntireSolution()	'Ctrl + Shift + 4, Global
        DTE.ExecuteCommand("Edit.FindinFiles")
        DTE.Find.SearchPath = "Entire Solution"
    End Sub

    Sub TrackActiveFileInSolutionExplorer()	'Ctrl + Shift + T, Global
        DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer")
        DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer")
    End Sub

End Module

Could someone convert it to a .vsix with shortcuts, and show me how if it's not too much trouble? 

Great thanks!


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>