Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS code right click menu new class c#

Tags:

I'm currently following some tutorial I bought which refers to 2 options called "New C# class / New C# Interface", while I'm only seeing "New file."

I'm new to VSCODE and installed only C# from OmniSharp.

I'd like to have "New C# class" and "New C# Interface" in this menu as well.

enter image description here

like image 625
Przemysław Lunic Avatar asked Jul 07 '17 19:07

Przemysław Lunic


People also ask

How do I get the menu bar in VS Code?

Go to VSCode settings ( CTRL+, or CMD+, ) and search for shortcut menu bar . Toggle buttons from there.

How do you create a class file in VS Code?

Start Visual Studio Code. In the Open Folder dialog, create a ClassLibraryProjects folder and click Select Folder (Open on macOS). Open the Terminal in Visual Studio Code by selecting View > Terminal from the main menu. The Terminal opens with the command prompt in the ClassLibraryProjects folder.


1 Answers

If you want those options in your right click menu, then you need to install the "C# Extensions" extension from the marketplace.

The link is here

Keep in mind this is just a shortcut extension, it is not actually required.

You can simply choose new file and give it the .cs extension if you want a new C# file.

like image 51
maccettura Avatar answered Oct 29 '22 09:10

maccettura