简体   繁体   中英

Editting start up code in Visual Studio 2010

i have maybe a newbie question, but i have started course about c# maybe a week ago , and there we are using Visual studio, so every time we open a new project (Console application) there shows up an page with code :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

and lectures want from us to remove some parts so the beginning code should like that :

using System;

class NameOfApp
{
    static void Main()
    {

    }
}

my question is : Is there a way to remove those parts somewhere from the menu ?

There is nothing that will automatically make all the changes your lecturer wants.

What you can do instead is create your own template for a new project and use that template.

This is a large subject - start reading about it on Visual Studio Templates on MSDN - customizing an existing template is probably the easiest way to get started.

您可以像Oded建议的那样为Visual Studio创建一个新的项目模板,但您也可以删除您不想要的模板代码,并将其替换为讲师想要的内容。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM