visual-studio-extensions

Force a file to open when a solution file (.sln) is opened

爷,独闯天下 提交于 2019-12-11 07:12:38
问题 I know that Visual Studio stores and persists opened files in the *.user files that it generates, but these files are not supposed to be checked in to TFS or shared between a team. We have README.md files that are "solution items" in a lot of our solutions in TFS. What I want is, when a solution is opened, have the README.md file open if it is not open already. (Sort of mimicking how GitHub shows you the readme file when you browse to the project homepage, but this is strictly TFS and Visual

Add two or more Tool Window into the same Visual Studio project

故事扮演 提交于 2019-12-11 06:56:49
问题 I was trying to add a second tool window to a VSPackage project in Visual Studio, I have a project with a tool window already created usin the wizard provided by Visual Studio when a VSPackage project is created, I was surfing the web looking for some tutorial that can help me adding a second tool window to my existing VSPackage project. I have read several articles about tool windows but I can't get with a solution. I create a new class using System; using System.Collections; using System

Writing Plugin for Visual studio IDE for 2010 [closed]

走远了吗. 提交于 2019-12-11 06:15:13
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Hello, I want to write a plugin in VS 2010. Where can I select the file from solution explorer, get file properties and display a dialog or form that I have created in my plugin project? 回答1: I recommend you start with Microsoft's Getting Started with Extending Visual Studio page. Also, Channel 9

Visual Studio Extention - Context Menu for 'Server Explorer'

穿精又带淫゛_ 提交于 2019-12-11 05:46:52
问题 In a VSIX project, in the .vsct file I can see how to target different objects and provide a custom context menu: For instance, the following will target an item node in the solution explorer: <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE"/> <!--<Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>--> </Group> Changing the id property from IDM_VS_CTXT_ITEMNODE to IDM_VS_CTXT_CODEWIN will result in the context menu appearing in the code window instead. This is documented here:

WPF ListView/GridView Binding

我与影子孤独终老i 提交于 2019-12-11 05:32:05
问题 I am attempting to make a simple VS 2017 Extension that is taking a object and displaying it. I have the data coming back and displaying the json in a text box, so I know the data is coming back correctly. But for some reason the gv is just showing the word "id" twice, as their are two records in the dataset. I have tried so many things I'm loosing track. Plus the documentation seems to be all over the place. I believe there could be at least 2 issues here... 1) XAML the "Bindings" 2) Binding

How to get line number on IClassifier.GetClassificationSpans?

大兔子大兔子 提交于 2019-12-11 04:49:47
问题 I am developing a Visual Studio extension in C# and I want to add classifications on a file based on an analysis of this file that is already provided. I have got analysis results with a set of locations (file, line, column) for each defect. Based on MS doc, I have seen that we should implement the IClassifier.GetClassificationSpans method. I can see that we are given a set of SnapshotSpan. It looks like these spans are mostly complete lines from the open file: the visible lines currently

How to display images in a Visual Studio extension?

假装没事ソ 提交于 2019-12-11 04:47:53
问题 I am developing a Visual Studio extension. I need to display icons/images inside some tool window written with XAML. I have put the images files inside the Resources folder inside the extension project folder. And I have declared the images like: <Image Source="pack://application:,,,/Resources/Help_16.png" Width="16" Height="16" Margin="4,0,0,0"/> <Image Source="pack://application:,,,/Resources/HowToFix_16.png" Width="16" Height="16" Margin="4,0,0,0"/> They show nicely in the Visual Studio

VS Image Watch extension natvis for BITMAPINFOHEADER?

ぃ、小莉子 提交于 2019-12-11 03:48:55
问题 The Image Watch extension for Visual Studio (http://goo.gl/TWre0X) allows you to see a bitmap in memory while debugging. Extremely useful, however I am stuck trying to define a natvis file to allow for viewing DIBs or BITMAPINFOHEADER or even just BITMAPINFO objects. Here is what I currently have: <?xml version="1.0" encoding="utf-8"?> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1"

Specify VS extension installation directory name

筅森魡賤 提交于 2019-12-11 02:09:03
问题 After installing extension in VS 2012 it is placed in %userprofile%AppData\Local\Microsoft\VisualStudio\11.0\Extensions\ (or in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions if it is installed for all users) and in folder with random name like "hilatg23.234" or "kcsuvnvi.qtq". Is there a way to specify the name of this folder and make this extension to install to folder like %userprofile%AppData\Local\Microsoft\VisualStudio\11.0\Extensions\MY_EXTENSION_NAME 回答1:

Extending VS2012 Javascript Intellisense with custom ICompletionSourceProvider

别等时光非礼了梦想. 提交于 2019-12-11 01:45:12
问题 I have created a new classes like following [Order(Before = "High")] [Export(typeof(ICompletionSourceProvider))] [ContentType("JavaScript"), Name("EnhancedJavaScriptCompletion")] internal sealed class JavaScriptCompletionSourceProvider : ICompletionSourceProvider { } And the CompletionSource internal sealed class CompletionSource : ICompletionSource, IDisposable { public void AugmentCompletionSession(ICompletionSession session, IList<CompletionSet> completionSets) { } public void Dispose() {