vsix

Can I detect document saved (not changed) with Visual Studio Workspace in a VSIX?

偶尔善良 提交于 2020-01-23 02:14:30
问题 In my extension I use to tap into the document saved event using DTE: this._events2 = (Events2)this._dte.Events; //setup document events this._documentEvents = this._events2.DocumentEvents; this._documentEvents.DocumentSaved += _documentEvents_DocumentSaved; I am migrating my extension to VS 2017 and want to start using the Roslyn stuff instead of DTE. I figured out how to get the Visual Studio Workspace and tap into the workspace changed event. Now I have access to all these document events

Vsix (Visual Studio extension) full path of right-clicked file

半城伤御伤魂 提交于 2020-01-15 06:44:43
问题 I would like to retrieve the full path of a right-clicked file (within the editor of Visual Studio 2017). I already implemented the following code to retrieve the path of a file when a project and/or solution is opened. This implementation isn't working if a single file is opened. Scenario: Open VS (2017) Navigate to File -> Open -> File. Right click on a file and click on the desired context menu. (It calls the IsSingleProjectItemSelection method). monitorSelection.GetCurrentSelection(out

VSIX extension - Change Path of DLL

对着背影说爱祢 提交于 2020-01-14 02:53:14
问题 I've created a Visual Studio Extension (VSIX) with Visual Studio 2013. In this extension I have a reference to another class library (DLL) which I created. This DLL will be placed in the extension Folder correctly after installing the extension Extension Folder is C:\Users\username\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\1oqfh4o4.2y5\ But I need this dll also in the installing directory of the Visual Studio -> C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE If I

Digitally sign a Visual Studio 2012 VSIX extension

一个人想着一个人 提交于 2020-01-13 13:08:33
问题 I am trying to sign a Visual Studio 2012 extension that is packaged as a VSIX file. I have followed the instructions at http://www.jeff.wilcox.name/2010/03/vsixcodesigning/; however, I am interested in performing signing without specifying a pfx file and password. For example, if I were to call 'signtool.exe', my command line would be: "signtool.exe" sign /n MySubjectName /t 'http://timestamp.verisign.com/scripts/timstamp.dll' /d "MyDescription" MyPackage.vsix I understand that this command

Digitally sign a Visual Studio 2012 VSIX extension

此生再无相见时 提交于 2020-01-13 13:08:12
问题 I am trying to sign a Visual Studio 2012 extension that is packaged as a VSIX file. I have followed the instructions at http://www.jeff.wilcox.name/2010/03/vsixcodesigning/; however, I am interested in performing signing without specifying a pfx file and password. For example, if I were to call 'signtool.exe', my command line would be: "signtool.exe" sign /n MySubjectName /t 'http://timestamp.verisign.com/scripts/timstamp.dll' /d "MyDescription" MyPackage.vsix I understand that this command

How to collect types from current solution using Visual Studio Extension?

大憨熊 提交于 2020-01-13 09:56:06
问题 I have created Visual Studio 2012 Package (using VS2012 SDK). This Extension (if installed on the client's IDE environment) should has, among other things, a functionality of collecting all specific types from currently opened solution which developer is working on. A similar feature is embedded in Visual Studio Designer for ASP.NET MVC Application Project, where developer implements a Model/Controller class, build a project, and then is able to access this type in Scaffolding UI (Designer's

How to open the Visual Studio Editor Programmatically in a VSIX project

纵饮孤独 提交于 2020-01-07 09:15:53
问题 I am working on a VSIX(Visual Studio Extension) project where I am fetching html text from a Service. I need to open the retrieved html text in the Visual Studio Editor. Any idea on how to achieve it or any sample code ? Thanks 回答1: You can save the text to a .html file and then open it in the VS editor with DTE.ItemOperations.OpenFile(file); 回答2: Take a look at AutoFindReplace extension which opens existing files in the editor window. You can download it from the VS Gallery. 来源: https:/

Include whole folder in VSIX

﹥>﹥吖頭↗ 提交于 2020-01-03 06:46:09
问题 Is there an easy way to include a whole folder as content in a VSIX package? Hopefully there is an easier way than setting the "Include in VSIX" flag for each file separately. The reason why we need this, is to add a compiled html help page (with a lot of dependency files) to our extension. 回答1: Is there an easy way to include a whole folder as content in a VSIX package? Hopefully there is an easier way than setting the "Include in VSIX" flag for each file separately. You can use wildcard *

How to add C/C++ language service to a Visual Studio-based application?

旧巷老猫 提交于 2020-01-02 13:27:56
问题 I am trying to create a domain specific IDE based on Visual Studio shell. I followed the walk-through to create a basic Isolated Visual Studio Shell Application. Then I started the basic shell application and drag a C file into it. There's no syntax highlighting because no language service is included yet. I found the GUIDs for various Visual Studio feature packages. I was expecting some kind of language feature package for C/C++ listed there so I can just add it into my IDE's feature list.

How to add C/C++ language service to a Visual Studio-based application?

若如初见. 提交于 2020-01-02 13:27:13
问题 I am trying to create a domain specific IDE based on Visual Studio shell. I followed the walk-through to create a basic Isolated Visual Studio Shell Application. Then I started the basic shell application and drag a C file into it. There's no syntax highlighting because no language service is included yet. I found the GUIDs for various Visual Studio feature packages. I was expecting some kind of language feature package for C/C++ listed there so I can just add it into my IDE's feature list.