visual-studio-sdk

VS 2013 SDK: How to keybind hotkey only for Code Window Editor?

一个人想着一个人 提交于 2019-12-02 00:47:52
In C# or else VB.Net , using a Visual Studio Package , I would like to assign a custom keyboard shortcut to a CommandBarButton , for example Ctrl + E + R , then, when pressed, the associated CommandBarButton should call its Execute method (I imagine that). How I could do it?. Update ( please avoid question above, that issue was already answered. ) Actually I'm using an vsct file, then my keybinding is this: <KeyBindings> <KeyBinding guid="guidMainCmdSet" id="cmdidMyCommand" editor="guidVSStd97" mod1="Control" key1="E" mod2="Control" key2="R"/> </KeyBindings> MSDN explains that the guidVSStd97

Visual Studio SDK - Handling File Add, Remove, and Rename Events

偶尔善良 提交于 2019-11-30 15:20:22
I'm working on a Visual Studio extension that should listen for events when the user adds, removes, or renames files in the current solution. The answer to this question notes that VS provides infrastructure for listening to document events like saving, opening and closing through the DocumentEvents interface. For example: Dte.Events.DocumentEvents.DocumentSaved Are there similar events that would allow me to listen to the user adding/removing/renaming documents? First, don't use DTE if you can help it. It's a very incomplete, shaky abstraction papered over an extremely complex interface.

Visual Studio SDK - Handling File Add, Remove, and Rename Events

拟墨画扇 提交于 2019-11-29 21:35:26
问题 I'm working on a Visual Studio extension that should listen for events when the user adds, removes, or renames files in the current solution. The answer to this question notes that VS provides infrastructure for listening to document events like saving, opening and closing through the DocumentEvents interface. For example: Dte.Events.DocumentEvents.DocumentSaved Are there similar events that would allow me to listen to the user adding/removing/renaming documents? 回答1: First, don't use DTE if

VS2012: 'nmake' is not recognized as an internal or external command

﹥>﹥吖頭↗ 提交于 2019-11-29 06:07:35
I tried VS2012 Native Tools, Cross Tools and Developers command prompt. And it does not recognize 'nmake'. It didn't work on VS2010 either. On VS2008, it could not find depencies like windows.h I want to build a static library curl for VS2012: http://quantcorner.wordpress.com/2012/04/08/using-libcurl-with-visual-c-2010/ for visual studio 2015 community edition add the following path to your system environment path C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin in the above path there is the nmake command find the following dir, and run vsvars32.bat C:\Program Files (x86)\Microsoft

Get a list of Solution/Project Files for VS Add-in or DXCore Plugin

*爱你&永不变心* 提交于 2019-11-28 06:32:48
I am trying to write a add-in for Visual Studio that, among other things, needs to keep track of every file in a Visual Studio solution. I know what events I need to subscribe to (when a Solution is opened, when a file is added/removed/edited in it, the same for projects, etc), but I don't understand how to actually get a list of files from any of it. I recently installed CodeRush and have been playing with the DXCore framework. I'm very happy with it's approach at plugins, but I still don't see an obvious way to get a list of files in the solution. So to sum it up: How, via the Visual Studio

VS2012: 'nmake' is not recognized as an internal or external command

有些话、适合烂在心里 提交于 2019-11-27 23:38:11
问题 I tried VS2012 Native Tools, Cross Tools and Developers command prompt. And it does not recognize 'nmake'. It didn't work on VS2010 either. On VS2008, it could not find depencies like windows.h I want to build a static library curl for VS2012: http://quantcorner.wordpress.com/2012/04/08/using-libcurl-with-visual-c-2010/ 回答1: for visual studio 2015 community edition add the following path to your system environment path C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin in the above

Get a list of Solution/Project Files for VS Add-in or DXCore Plugin

混江龙づ霸主 提交于 2019-11-26 20:06:09
问题 I am trying to write a add-in for Visual Studio that, among other things, needs to keep track of every file in a Visual Studio solution. I know what events I need to subscribe to (when a Solution is opened, when a file is added/removed/edited in it, the same for projects, etc), but I don't understand how to actually get a list of files from any of it. I recently installed CodeRush and have been playing with the DXCore framework. I'm very happy with it's approach at plugins, but I still don't