teddybear
teddybear

Reputation: 83

How do you change the default programming language visual studio 2013?

I installed Visual Studio 2013 again after I got a new PC, but now when I create a new file it creates it as an VB file instead of c#.

I changed the default programming language in web.config like shown here:

enter image description here

I tried reloading the project but it still does not work.

The web project is placed on a local ftp server.

Upvotes: 0

Views: 1299

Answers (2)

teddybear
teddybear

Reputation: 83

The menu that shows up when you right click on a folder > "Add" shows a list of the options available for that folder ex. if you are in App_code it shows "Class". It seems it doesn't change the first suggestion to C# class even tho you change the programming language. So to fix that you go into the same menu and pick "Add New item..." and select C# Class file ...close it. Now if you try and create a file again it still says "Class" in the Add menu, but when you select it now, it creates it as an C#.

Sovled the problem for me. Thanks to all of you leading me to the answer.

Upvotes: 0

Jasen
Jasen

Reputation: 14250

When you make a new project, under Templates you should see a node for Visual Basic and one for Visual C# with the different types of projects listed under the language. I believe VS remembers which one you used last.

VS2013 New Project

Upvotes: 1

Related Questions