visual-studio-extensions


Detect Setting from Visual Studio Custom Extension

橙三吉。 提交于 2020-01-24 12:45:22
问题 I am updating an existing Visual Studio extension to be compatible with Visual Studio 2019. This extension allows devs to create a custom project type. When users click Visual Studio's "Create" button to create a new project of this custom type, the extension shows a custom form to retrieve certain info from the dev before the extension creates the project. This is accomplished from within a Wizard class library specified in the vstemplate of my extension: <WizardExtension> <Assembly>..

VS 2013 SDK: How to develop an extension accesible through the editor's contextmenu?

╄→尐↘猪︶ㄣ 提交于 2020-01-17 04:15:15
问题 I'm using Visual Studio 2013 . The project wizard of a Visual Studio Package project gives these three options: However, what I pretend to do is create a very simple extension (which modifies the selected text) and it should be accesible through a command from the contextmenu of the text-editor, not a menu command neither a tool window and neither a custom editor (...I think). Firstly, what is the project that I should select for my needs? (I'm using a menu command). Secondly, what are the

How to give Administrator Privileges to my VSPackage?

泄露秘密 提交于 2020-01-17 01:21:29
问题 I've developed a VSPackage for Visual Studio, which needs to copy some files to Visual Studio's Installation Path . If I Run Visual Studio as Administrator (when using my installed VSPackage). It can copy files with no errors. When I run Visual Studio normally, I get Access to the path ... is denied error. Question How can I give my VSPackage to admin privileges even when the Visual Studio is being run as a normal user. Or at least how can I invoke something like this: 回答1: Your package is a

Visual Studio Solution Explorer extension to rename file but NOT extension?

孤街浪徒 提交于 2020-01-15 05:46:06
问题 Windows Explorer has a small (but great!) feature that Visual Studio does not: When you rename a file in Windows Explorer on Windows 7 (for sure, I think for Vista and later) it selects only the main part of the filename, and not the file extension. It makes the assumption that 90% of the time, you don't want to change the file extension and saves you from the choice of using the mouse to select the relevant part to rename (bad) or having to retype the file extension (also bad). Of course

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

Visual Studio: How to get IDebugEngine2 from VS Package (except IVsLoader)

十年热恋 提交于 2020-01-13 15:50:55
问题 Is it possible to get a list or a specific instance of IDebugEngine2 (MSDN) from a Visual Studio Package without using IVsLoader approach (described here)? Normally I would expect most services to be available through GetService , either directly or through some other service. But I can not easily find anything that can provide debug engines. 回答1: What are you trying to do with it? The debugger interfaces are extremely fragile. Often there are 2, 3, or maybe more possible ways to perform an

Visual Studio: How to get IDebugEngine2 from VS Package (except IVsLoader)

放肆的年华 提交于 2020-01-13 15:50:13
问题 Is it possible to get a list or a specific instance of IDebugEngine2 (MSDN) from a Visual Studio Package without using IVsLoader approach (described here)? Normally I would expect most services to be available through GetService , either directly or through some other service. But I can not easily find anything that can provide debug engines. 回答1: What are you trying to do with it? The debugger interfaces are extremely fragile. Often there are 2, 3, or maybe more possible ways to perform an

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

Export/Import VS extensions list?

六眼飞鱼酱① 提交于 2020-01-13 04:12:31
问题 Is there an easy way to backup the installed extensions list in VS (2017), so that when I install the machine anew I can easily install my regular extensions at once? Note: I've found this question that asks an identical question to my own, except it targets VS Code, whereas my question is about Visual Studio for Windows. 回答1: Roaming Extension Manager is built in Visual Studio 2017: The Roaming Extension Manager helps you keep track of all your favorite extensions across all of your

Export/Import VS extensions list?

杀马特。学长 韩版系。学妹 提交于 2020-01-13 04:12:11
问题 Is there an easy way to backup the installed extensions list in VS (2017), so that when I install the machine anew I can easily install my regular extensions at once? Note: I've found this question that asks an identical question to my own, except it targets VS Code, whereas my question is about Visual Studio for Windows. 回答1: Roaming Extension Manager is built in Visual Studio 2017: The Roaming Extension Manager helps you keep track of all your favorite extensions across all of your

工具导航Map