Questions tagged [visual-studio-extensions]
Products and Extensions for Visual Studio which help you get the most out of Visual Studio.
1,682
questions
-2
votes
0
answers
34
views
Get Recently added project in Visual studio
I am working on an extension to the visual project where I add multiple projects to the solution one by one. My question is is there a way to get the recently added project from the DTE or in any ...
0
votes
0
answers
22
views
How to create visual studio extension to add a context menu to open file with not default editor [closed]
I what to create a "open with" like context menu to open excel files with a custom editor.
I would like to add a menu entrance to open with my custom excel editor. I don't want to change de ...
-4
votes
1
answer
59
views
How to disable or unsee three dots "..." in all HTML classes?
I'm creating a proyect in VueJS and whenever I create a new class in an HTML tag every class shows as class="..."
I kind of dont like that, I don't know if its related to a new extension i'...
-1
votes
0
answers
59
views
Get information about current resolve conflict
I'm busy with an extension that gets triggered save.
This also gets triggered when users are active resolving conflicts in the built-in merge tool.
Unfortunately, some elements of the extension rely ...
0
votes
0
answers
23
views
How to include and run a node package/react CLI project with my Visual Studio Extension?
I'm developing a new feature for a Visual Studio Extension. Currently the extension calls a node package via command line that exists remotely (something like 'npx @project args') which works fine. ...
0
votes
1
answer
44
views
Debugging VSIX Projects in Experimental Instance of Visual Studio suddenly causes StackOverflowException
I've spent some time this weekend working on a VSIX (Visual Studio Extension) project, and about some time yesterday the experimental instance began throwing a StackOverflowException when starting ...
1
vote
0
answers
87
views
How to change icon of file based on file type in Visual Studio Extension
ITNOA
I have a GitHub project for Visual Studio Ansible extension, in this extension I want to change icon of ansible file in Visual Studio (.ansible and .ansible.yaml) based on file extension, but I ...
0
votes
0
answers
27
views
include tmLanguage does not work correctly in Visual Studio
As you can see in Visual Studio Ansible Extension Project we have tmLanguage for Ansible grammar that include other tmLanguages as you can see below
<dict>
<key>...
0
votes
0
answers
31
views
Why nested file extension does not work in tmLnaguage file types match in Visual Studio?
As you can see in Visual Studio Ansible Extension Project we have tmLanguage for Ansible grammar that file type match with below
<key>fileTypes</key>
<array>
...
0
votes
0
answers
62
views
What is equivalent for injection grammars in Visual Studio
In visual studio code we have a concept who name is injection grammars and definition is
let you extend an existing grammar. An injection grammar is a regular TextMate grammar that is injected into a ...
0
votes
1
answer
51
views
Avoid getting "File Modification Detected" message Programmatically
Hi I am developing an visual studio extension where once the solution is open and I try to add a new project using a command after creating that project this msg pops up saying modified outside the ...
2
votes
0
answers
61
views
Port vscode (visual studio code) language server to Visual Studio extension
I want to add ansible DSL (based on yaml) support for Visual Studio 2022 (with extension), I found a language server for ansible DSL in visual studio code, and I want to port this language server into ...
0
votes
1
answer
57
views
Is it possible to get a class and it's properties within a visual studio item template?
I am currently creating a few templates for my team to use within various projects.
I have a very simple "simple mapper" template and a wizard to go along with it that I'd like to expand ...
0
votes
2
answers
77
views
How can I get Web API autocomplete/IntelliSense in VSCode?
I'm using VSCode for web development and I noticed that there is no JavaScript autocomplete/IntelliSense for browser-related types such as Element nor functions such as document.querySelector(). Is ...
0
votes
0
answers
43
views
Using Roslyn to check that attributes are coherent
I have a project where I do this:
public class Stuff
{
[ExecuteOnComputer("192.168.1.2")]
public void methodA()
{
return "ok";
}
[ExecuteOnComputer(&...
0
votes
0
answers
20
views
How can I install Visual Studio Code Extension under linux for all users
We have a linux-based system that does not have internet access.
To install any Visual Studio Code extension we need to download it elsewhere and copy it across to the server.
Is there a way we can do ...
0
votes
0
answers
31
views
Box with two lines appears on System.Windows.Window
Hi i ran into something annoying while creating a Windows Window.
Im using the System.Window.Window base class with a single BlockText & Border element to create a tooltip like window.
The issue ...
1
vote
1
answer
42
views
Visual Studio Extension which starts a program and attaches the debugger: How to avoid stop because of LdrpDoDebuggerBreak()?
I am trying to create a Visual Studio Extension (VS 2022) which starts a program and attaches the debugger. At this point no solution/project is loaded.
It works. However, at startup a window appears ...
0
votes
0
answers
29
views
VS Extension: how to handle OnAfterOpenFolder event
My extension currently supports solutions, but I'd like to make it also work with folders. Following the same approach I'm using for solutions, I've added a handler for the SolutionEvents....
0
votes
0
answers
69
views
Cannot start Concurrency Visualizer for Visual Studio 2019
It is very simalar to Cannot start Concurrency Visualizer in Visual Studio 2012. Got error "Unable to start the ETW collection" but the error differents.
If I start Concurrency Visualizer ...
0
votes
0
answers
41
views
Organizing extensions for Visual Studio
You can use Visual Studio (MSVS) for Python, C++, Qt, C#, Fortran, etc. projects. Each of them requires just right set of enabled extensions and all others preferably disabled and hidden.
Is there a ...
0
votes
0
answers
53
views
Visual Studio: How to detect any changes on project properties and trigger event from extension when user click apply
I'm trying to write VS extension for VC++ projects, I want to detect any changes on project properties (Additional include directories, additional using directories etc.) when user change and click ...
0
votes
1
answer
114
views
Extensions for Visual Studio 2022 Live Share
Is there any Live Share extensions for Visual Studio 2022 for Visual Studio Code to automatically update the webpage locally when saving the code?
I need to watch changings on website ( local host ) ...
2
votes
0
answers
58
views
In the extension development of Visual Studio, is there an API similar to the effect of the Decoration API in the extension of VSCode?
I am developing a code completion extension. I have achieved the effect in the figure below in both VSCode and Jetbrains IDE, that is, the completion content is displayed in gray text behind the code. ...
1
vote
2
answers
310
views
Could not load file or asssembly 'Microsoft.identity.client'
I want to install Github Copilot extension in Visual studio 2022. when i install it, i close all vs 2022 as instructed then i am supposed to receive a message saying that it was done.
However i keep ...
0
votes
1
answer
52
views
How to bundle windows visual studio VSIX with other built application?
I found that the windows visual studio extension is targeted to .net framework and only .net framework (which seems not clearly described in the docs?), after switching our custom mono debugger ...
0
votes
1
answer
158
views
How to make a VS 2022 VSIX project work in 2019?
I have an extension made with 2022, but I want it to also work on 2019, how would I go about this?
I changed some version numbers from (17, 18) to (16, 18) like this:
But there is no change, any info ...
0
votes
1
answer
49
views
VSCT: Place Search Textbox below the toolwindow toolbar
I have made a toolbar that has a Search Textbox, using the visual studio built in search for the toolwindowpane: https://learn.microsoft.com/pt-pt/previous-versions/visualstudio/visual-studio-2015/...
0
votes
0
answers
20
views
Finding a similiar feature/plugin for creating laravel blade components
I need assistance in locating a plugin that can generate blade components similar to the one shown in the image.
I vaguely recall seeing it on a video a few months ago and was wondering if anyone was ...
0
votes
0
answers
32
views
Not able to collapse Root Node under Visual Studio Server Explorer Hierarchy
I have a custom hierarchy that I want to show in Visual Studio Server Explorer as a part of my Visual Studio Extension. I am adding root node in the hierarchy like below (pseudo code)
class ...
-1
votes
2
answers
36
views
Visual Studio not installing extensions, even when all instances are closed
I am trying to install an extension from the Visual Studio 2022 Manage Extension window.
It says I have to close all Visual Studio windows, which I did, but it is still not installing.
2
votes
0
answers
446
views
Best alternative for "web essentials" extension for visual studio 2022?
unfortunately "web essential" extension developers didn't roll out new version that works with visual studio 2022 and the last version is only compatible with VS 2019. what do you recommend ...
0
votes
2
answers
41
views
How to move my command in the same section of copy/paste menu?
I need a little bit of help to move my command in the same section of copy/paste (context menu).
I tried to copy the parenting of Copy command that can be found in ShellCmdPlace.vsct without success.
...
0
votes
0
answers
84
views
How to retrieve current solution's start-up project (.csproj) information from inside IDeployProvider
I'm creating a Visual Studio debugging extension that works in both VS2019 and VS2022 on Windows. So I have a IDeployProvider, class.
So, inside my public async Task Deploy() I'm doing the following......
3
votes
0
answers
135
views
How can I create an instance of IVsSolution4?
I am updating a Visual Studio extension to work in Visual Studio 2022. The extension was last updated for Visual Studio 2017.
In the extension is a helper method, ReloadProject, used to reload a ...
0
votes
0
answers
34
views
Visual Studio - Extending a built-in windows
How can we execute a command which is not in the parameter list of DTE.ExecuteCommand(...)?
(s. for whole list: https://github.com/ligershark/VoiceExtension/blob/master/src/Resources/commands.txt )
...
0
votes
0
answers
25
views
Disabling submenus in a VS extension
My VS extension adds dynamic flyouts and commands to the Error List context menu. Depending on what is selected, I want to disable some of the flyouts in the BeforeQueryStatus event handler. But it ...
0
votes
0
answers
86
views
"Comment Selection" command is not currently available in Visual Studio C++ editor MEF extension
We want to extend the Visual Studio C++ editor using an MEF component to add some features to it. To do so, We used the C/C++ BaseDefinition:
[Export]
[Name("mycpp")]
[BaseDefinition("C/...
0
votes
0
answers
43
views
Get DialogPage settings from a ILanguageClient
I am trying to create an extension for visual studio with AsyncPackage and ILanguageClient.
I have created a DialogPage named Config.
When I launch my extension the page "Config" does exist ...
0
votes
0
answers
41
views
Vsix Private Gallery VersionRange do nothing
Hallo i'm hosting a Private Gallery of Visual Studio Extensions.
I have 1 Extension for Visual Stduio 2019 only and
one version for Visual Studio 2022 only but when i'm looking into Visual Studio 2019 ...
0
votes
1
answer
38
views
Dte.LaunchWizard not showing New Item dialog
I am trying to add a new item from an item template from a Visual Studio command. I cannot get Visual Studio to show the New Item dialog. This is in Visual Studio 2022.
Regardless of whether I use ...
0
votes
1
answer
89
views
How to get access to built-in language services in VSIX?
I am having trouble with getting access to the default C#-LanguageService in IVsExpansionClient.FormatSpan(IVsTextLines pBuffer, TextSpan[] ts). I need a Source-Instance of the current LanguageService ...
1
vote
0
answers
96
views
Bloop VSCode extension won't stop opening even after uninstallation
I briefly tried out the Bloop extension in VSCode, and decided it wasn't for me. After uninstall, it continues to pop up in the navigation sidebar, whenever I complete an import of an npm module, like ...
0
votes
0
answers
207
views
Context Menu Visual Studio Extension
I need help to find the command which allows an Command in Visual Studio to add a option to the
Coding Interface Context Menu , so that if you right click on an class you would be able to use the ...
0
votes
0
answers
133
views
Can't assign a LoggerFactory to ILoggerFactory because they comes from two different set of Microsoft.Extensions.Logging* assemblies
ILoggerFactory comes from Microsoft.Extensions.Logging.Abstractions 6.0.0.1, provided from my extension, as shown here:
While LoggerFactory comes from Microsoft.Extensions.Logging 6.0.0.0, provided ...
1
vote
1
answer
377
views
Solidity-extension in VS Code can't resolve the imports from node_modules
Please take a look at my environment details.
Environment
Node installed with nvm
Truffle is installed in different node environments which can be switched by simply changing the node by nvm use v16....
0
votes
1
answer
87
views
Compiling Visual Studio extension - problem with Microsoft.VisualStudio namespace
I'm learnig how create add-ons for VisualStudio.
First I downloaded this extension:
Microsoft Dynamics AX 2012 X++ Editor Extensions
(finally I needs a extension to the X ++ editor, hence the choice)
...
0
votes
1
answer
54
views
VSIX Open a Comparison/Difference View Window
I am writing a Visual Studio Extension for Visual Studio 2022 where I just want to Open a Comparison Window just like when you click on a file in the Git Changes view.
I see various classes ...
0
votes
1
answer
84
views
Is it possible to write a cross platform extension for both VSCode and Visual Studio 2022?
My understanding is that in writing an extension for VSCode, the extension can be packaged as a VSIX file, which is what Visual Studio uses as the extension file.
Would the extension written for ...
0
votes
0
answers
140
views
Is there a way to install a VSIX extension in Visual Studio Preview?
I'm trying to use the recently-released .NET 7 RC1 with Visual Studio 17.4 Preview 2. Unfortunately, I'm unable to build my project because it uses ANTLR at one point, and the ANTLR extension for ...