How to activate VsVim? - c#

I am using ReSharper on Visual Studio but also I'm a vim user. I heard this VsVim. I downloaded it and installed the extension for visual studio 2010. But can't get the any of the vim commands to work. Actually, I don't think I managed to make VsVim work because any of the vim keybindings aren't working. I suspect ReSharper blocking the extension. What is the way of activating this VsVim extension and start using it?

To check that VsVim has been installed correctly you can go into the Extension Manager in Visual Studio 2010 (Tools / Extension Manager... / Installed Extensions ). You should see VsVim listed.
If it isn't listed, then installing it through the Extension Manager is probably the easiest way to go. From the Extension Manager, click Online Gallery. Then search for VsVim in the "Search Online Gallery" box. It should appear in the search results and give you the option to install it.
VsVim's author, #JaredPar, has tested VsVim against Resharper 5.1 and 6.0. If you're using one of those versions and are still having issues he'd probably appreciate your feedback on VsVim's issue tracker.

I had to restart Visual Studio after installing VsVim before it started working.
Later, I disabled VsVim. When I tried to reenable it, it no longer appeared even after restarting Visual Studio. I had to uninstall, reinstall, restart Visual Studio, and then it worked.

If you want to enable/disable the VsVim plugin in visual studio 2017, then make sure that vsvim ctrl+shift+f12 is handled by VsVim plugin
example :

Related

"Could not launch Visual studio" error (on Mac)

I updated Visual Studio on Mac and after it tried to start, it told me I need to install Mono and directed me to a web page for that. I installed Mono. Now every time I launch Visual Studio, it just says
Could not launch Visual Studio
This application requires Xamarin.Mac native library side-by-side.
Please download and install the latest version of Mono.
I tried restarting but that didn't help.
What now?
(I'm running the latest macOS, and updated XCode if that matters. Mono is 5.4.0.201.)
New EDIT:(2022)
Users are saying there's a better way than uninstalling and reinstalling. I haven't tested it myself. See comments and answers for more information.
Previous EDIT:
Uninstalling and reinstalling is still the only way as the answer suggests, on: 2019:
March
July
August
September
The fastest and easiest way will be to uninstall and reinstall Visual Studio.
I have just ran into the same problem. I did follow the alert instructions and installed the newest mono framework from Mono websites (6.10.0). After this still the same issue. So I downloaded and ran VS4M installer and it said, it need version 6.8 of Mono framework and it did offer me to download and install this "update". So i went ahead. Still the same warning after launching VS.
Desperately enough after reading this thread I started looking for uninstall instructions (on official site). I did not want to use the script to auto-uninstall as I rather do it all by myself just for ensuring it will be everything done properly. So manual uninstall said to delete the Visual Studio app from /Application folder first. I did it. And woala: All the sudden the new app called "Visual Studio (old)" appeared (or maybe it was there already but I did not notice? Anyway, it was there). It was certainly weird, but I ran it. And it did work! Working instance of Visual Studio! I did check the updates and there was one for the app only. That was my first step straight after launching. It did download the new update and installed it correctly. Now I have end up with fully working and fully updated version of VS4M!
Conclusion:
Use VS4M installer to install all updates and necessarities to run VS4M. After this go to your /Application folder and delete "Visual Studio" app. The "Visual Studio (old)" app should appear. Run this app and update it straight away. (you might have to rename it afterwards from "Visual Studio (old)" to "Visual Studio")
Did you try going to the Applications folder? You'll see a Visual Studio.app file there and you can run Visual Studio by opening that.
I have sovled the problem by brew install --cask mono-mdk rather than brew install mono, in case anyone is installing mono through brew.

No Colours in Specflow Feature Files on Visual Studio

I have the latest version of SpecFlow installed, and still the feature files display uncoloured, like so...
(Not enough rep to insert images)
Specflow uncoloured feature files
Is there certain configurations that are set for colours to be displayed in Specflow files?
VS2015
Specflow 2.1
There is an option for coloring syntax in Tools->Options->SpecFlow that could cause the problem.
EDIT:
Ensure your SpecFlow extension is installed correctly:
Go to Tools->Extensions and updates -> Installed look for SpecFlow for Visual Studio 2015. You might try to uninstall and install it again.
If you can't find in the list then select Online, in search type specflow, then select result and install.
Gherkin code highlighting issue on Visual Studio 2019
For Visual studio 2019 need to install an Extension
Extensions -> Manage Extensions -> Search for Specflow
Can see Extension by name 'Specflow for Visual Studio 2019' click and restart the Visual Studio 2019 app.
FIX for VS 2022
If this is still an issue, On update, the extension is removed.
Navigate to Extensions, Click Online, Search Specflow and install the extension.
Restart and modify
Fix is complete
In my case I had the coloring in some projects but in other I haven't. Pre-installing the Visual Studio extension worked for me.

No templates in Visual Studio 2017

After a Visual Studio 2017 (RC) installation from scratch, I can't find a standard list of templates. I'm specifically interested in the Console Application (C#) template and the Windows Form (C#) template. I'm pretty sure I'm missing one of the Individual Components. I'm not sure which one is supposed to be installed and I don't want to install all of them.
Please see my list with components installed.
You need to install it by launching the installer.
Click the "Workload" tab* in the upper-left, then check top right ".NET-Desktop Development" and hit install. Note it may modify your installation size (bottom-right), and you can install other Workloads, but you must install ".NET-Desktop Development" at least.
*as seen in comments below, users were not able to achieve the equivalent using the "Individual Components" tab.
If you have installed .NET desktop development and still you can't see the templates, then VS is probably getting the templates from your custom templates folder and not installed.
To fix that, copy the installed templates folder to custom.
This is your "installed" folder
C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\ProjectTemplates
This is your "custom" folder
C:\Users[your username]\Documents\Visual
Studio\2017\Templates\ProjectTemplates
Typically this happens when you are at the office and you are running VS as an administrator and visual studio is confused how to merge both of them and if you notice they don't have the same folder structure and folder names.. One is CSHARP and the other C#....
I didn't have the same problem when I installed VS 2017 community edition at home though. This happened when I installed visual studio 2017 "enterprise" edition.
I found the path and wrote it in the options
My personal experience was that I had installed the Team Foundation Server client for 2017 first (was using it as a Proof of Concept for our QA team, while I was still using VS2015), then followed it up with Installing Visual Studio 2017 later to begin development.
What I ended up with on my Start Menu was a Visual Studio 2017 and a Visual Studio 2017 (2). The Visual Studio 2017 (2) had all the templates I was missing. Following the steps found in the First answer to this question (which were clear and easy to follow) did not fix my issue. I had thought that launching the client would upgrade to the Development Client, but it did not. I renamed it to Visual Studio Professional, and now have everything I need. Not sure if this happens to anyone else, but it was what happened to me, so I hope this helps someone.
NOTE: this topic is about installation issues with MS project templates.
I came here via a search in Google, I was looking for a missing Template option in Visual Studio 2017 File menu: in VS-2015, it was Export to Template and I used it to add my own standard Project Items.
Meanwhile, I found an answer.. my issue was not related to default templates and it does not need install things. The option Export to Template has been moved to the VS-2017 Project menu !
I had to reinstall .NET desktop development (throught Workload tab), even button was showing: Modify
After that Visual C# selection appeared :)
(And now i can use Console APP Template)
In my case, I had all of the required features, but I had installed the Team Explorer version (accidentally used the wrong installer) before installing Professional.
When running the Team Explorer version, only the Blank Solution option was available.
The Team Explorer EXE was located in:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\TeamExplorer\Common7\IDE\devenv.exe"
Once I launched the correct EXE, Visual Studio started working as expected.
The Professional EXE was located in:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe"
My C++ templates were there all along, it was my C# ones that were missing.
Similar to CSharpie, after trying many modify/re-installs, oddly the following finally worked for me :
- run the installer, but un-select 'Desktop development with C++'.
- allow installer to complete
- run the installer again, and select 'Desktop development with C++'.
- allow installer to complete
In my case, I had all of the required features, but I had installed the Team Explorer version (accidentally used the wrong installer) before installing Professional.
When running the Team Explorer version, only the Blank Solution option was available.
The Team Explorer EXE was located in: "C:\Program Files (x86)\Microsoft Visual Studio\2017\TeamExplorer\Common7\IDE\devenv.exe"
Once I launched the correct EXE, Visual Studio started working as expected.
The Professional EXE was located in: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe"
This solved my issue, and the reason was I had enterprise edition previously installed and then uninstalled and installed the professional edition. Team Explorer was not modified later when I moved to professional from enterprise edition.

Xsd2Code Plugin in VS2015

I have downloaded and installed Xsd2Code plugin.
But in the visual studio, when i right click on the xsd file, i am not able to see the option "Run Xsd2Code generation".
I am struggling with this.
Please help me guys.
They have just renamed the product to xsd2code++:
https://visualstudiogallery.msdn.microsoft.com/56ec19b6-8c47-4d00-b1b3-45f570411447
There is (meanwhile?) a hint on the download page that this version doesn't support Visual Studio 2015:
"NOTE : xsd2code community edition 3.4 do not support Vs 2015"
https://xsd2code.codeplex.com/releases/view/121223
Project xsd2code.codeplex.com is not updated frequently, you can see that newest item in download section is from November 2013.
If you want to use it with VS2015 you have these options:
use the updated paid version from www.xsd2code.com
get sources, compile them, and somehow create package for VS2015
Had the same problem. For me reinstall helped. I downloaded xsd2code.exe from Visual Studio Gallery
Another option for you might be, after you install the tool, go to C:\Program Files (x86)\Xsd2Code and run the Xsd2Code.vsPackage.vsix by hand. It either installs the extension or informs you it is already there.

how to properly install stylecop?

Well i downloaded the newest version, then installed, checked to instal entire files on local drive. I restarted VS2010 and rerun it. Unfortunatelly i can't find in menu > tools anything with should be connected with stylecop ( as in tutorial "how to use stylecop"). I am using x64 Windows7.
I really really don't know how to to use it.
Look: I click inside code, white field and i see only this:
1) Download StyleCop from here
2) Close all Visual Studio instances
3) Install StyleCop
4) Open Visual Studio, Right click inside code file and you could see Run StyleCop Option
Are you using one of the Visual Studio Express products? If so, you will not see UI integration of StyleCop since the VS Express edition does not support integration of add-ins and packages like StyleCop.
If you are using Express, you could still run StyleCop, but this will require using either MSBuild integration or a pre- or post- build event.
It looks like it is possible to use StyleCop with Express edition. Here is how.

Categories