VSCode Extension API - make own context menu in vscode extension api - user-interface

I am building my vscode extension for education purposes, which adds various text around the selected text. When the user selects lines of code, a drop-down list with functions appears.
It can look like list of completions of IntelliSense.
list of completions of IntelliSense
What vscode api functions can I use for it?
I tried to find api of context menu, but I hasn't.

Related

Is it possible to modify the visual studio callstack window context menu in an extension?

I'm looking to write a plugin for Concord that would allow me to filter some frames on the callstack that are mostly just noise.
I am hoping it's possible to make it configurable by adding a checkable option to this context menu:
Is it possible to modify the visual studio callstack window context
menu in an extension?
I think you cannot get it so far.
If you want to add a button under menu of Call Stack Window, you should get its ID so that you can extend its menu and add any custom button.
But in Microsoft official document, Microsoft does not enumerate its GUID and ID value and they does not extend it to us.
However, Output window, Properties Window, Error List Window.....does.
So if you still want its value, you should suggest a feature request on User Voiceforum(suggest a feature) and they will consider your idea carefully and give you a satisfactory feedback.

Add TabPages to Tab Control in Visual Studio 2010 Designer

I'm using Visual Studio 2010 Professional, and created a WTL Project (Dialog). In this dialog, I inserted a Tab Control via the Toolbox. However, after placing it on the dialog window in the Designer/Resource Editor, I just can't add any tabs. There are several issues:
In some video tutorials and the MSDN, it says that the Tab Control starts with two tabs, which switch when clicked. However, the Designer shows five tabs, which don't switch when I click them.
Aforementioned tutorials also suggest to edit the TabPages property in the property pane. However, I can't find such a property in the property pane.
When running the Test Dialog (found in the Format menu), the five tabs are visible, and they are also focused/switched when clicked. However, running the program, there's only the plain Tab Control pane without any tabs (white square).
How can I add a Tab into the Tab Control via the Designer, i.e. not dynamical?
Let's be good stackoverflowers and answer the question properly.
The visual basic tutorials do not show the same dialog resource editor you are using for your WTL project. Although, the video tutorial that is most closely related shows how to add a tab control using this editor; it does so by altering the MFC code. It runs the program to show the result; it does not show the tab inside the resource editor.
Thus, the conclusion is that tabs cannot be added using the dialog editor on its own.

What is the name of the VSIX that shows type members on mouse hover?

Used to have that extension under Visual Studio 2010 but I can't find it again.
The extension provide the following helper :
When hovering mouse over a type in the code editor a small window would pop-up and show members inside the type, saving the hassle to open the file to see what members that type contains.
You might be talking about Solution Navigator feature of Productivity Power Tools.
Solution Navigator also provides interactive tooltips in C# and VB code (replacing the default “quick info” tooltips) that give you the same kind of data, but right at your fingertips.

How to add controls from a control library to VS studio toolbox automatically (WP7)?

I want to achieve that when the user installs the WP7 control library he will find it in the Visual Studio toolbox automatically without manually adding it. In addition I would like to organize toolbox tabs in a logical manner.
I know it can be done for other platforms. For example I tried writing *.design.dll as described here - it does not work for WP7.
Any pointers how to work with toolbox for VS 2010 / WP7?
Nobody answered, so here is my brief summary:
The control library cannot be added to the Toolbox automatically unless you program VS plugin (package). Too much work for me...
*.design.dll (see the link above) basically works.
2a) You can hide controls from the Toolbox (BrowsableAttribute) and you can define control icons. That's probably everything you can do for Toolbox. The user has to add Toolbox tabs and "choose items" manually.
Well, I am not quite sure here, because when you drop the control dll file onto the Toolbox, then at least ToolboxTabNameAttribute works, i.e. corresponding Toolbox tabs are created automatically. Unfortunately, the tab is empty.
Also, when the control library is properly installed, then some of the controls are added to Choose items Toolbox dialog. Unfortunately, in my case most of the controls are missing and have to be added by manual browsing.
2b) Designer support (Properties window for the control) is better. You can hide properties (BrowsableAttribute), define categories (CategoryAttribute) and define descriptions (DescriptionAttribute).
Descriptions can be extracted from you documentation xml file, so that you don't need to write them again. To get the code google for MetadataBase.cs. Just be carefull, the files you'll find contain fatal bugs (ParseDescription method) and ignore some properties (getters that return a collection).
After all, the result is not that bad.

Intellisense is lost for outside classes in Visual Studio

I have a file of a user control but it's not in a project, It's just read by a webpart in sharepoint and I was editing it but suddenly the AutoComplete for classes and variables like controls, SQL .. were gone. Only the common keywords are available like if, int, while ...
How can I get them back?
When you just have a single file, I believe Visual Studio just opens it in the code editor, and not the IDE/Compiler. The editor is just syntax highlighting basically, though you do have the drop downs available to navigate subclasses and methods. As when you're dealing with projects, it does use the IDE/Compiler, so Intellisense is available as well as full editor/ide features for that language.
Create a new empy ASP.NET Website and then add existing item and choose this user control.

Resources