How to disable the C# snippets for the C# extension of Visual Studio Code
Some days ago, I published my C# Snippets extension for Visual Studio Code.
@panicoenlaxbox and me were talking about my extension and the conflicts with the C# extension of Microsoft (thanks to share your points of view Sergio).
I knew that there was another extension for Visual Studio Code with C# snippets named C#, but I don’t like this extension because is a “monster“, with a lot of features in one extension, and the most important for me, because the snippets of C# included in the extension, don’t cover that I hope of a collection of C# Snippets for .NET and .NET Core.
So, I decided create my own C# Snippets to be more flexible with the changes, and to have a small and efficient extension.
The problem here is that my C# Snippets extension has some snippets with the same names of the snippets of the C# extension (normal because I have used the official documentation of Microsoft as Microsoft did for its extension).
For a programmer, this is a little bit embarrassing, so I would like to look for the best solution to do all easier for the programmers.
This solution is that I want to share with you now.
Of course, you will have to install my C# Snippets extension to have all in perfect conditions. 😉
These are the steps that you have to follow to disable the snippets of the C# extension:
- Localize the Visual Studio Code extension here:
- Go to the ms-vscode.csharp extension folder.
- Open the snippets folder.
- Rename the csharp.json to bk_csharp.json for example.
- Start Visual Studio Code if it was closed, or restart it if is running.
Now, you will see the C# Snippets only, and the rest of features of C# extension.
I hope this helps.