Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6147853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:10:38+00:00 2026-05-23T19:10:38+00:00

I recently noticed that Visual Studio 2010 (Professional) inserts a FileHeader automatically in new

  • 0

I recently noticed that Visual Studio 2010 (Professional) inserts a FileHeader automatically in new class files. I don’t know when this started but some time ago this wasn’t enabled. Also, since then the using directives are added after the namespace.

This is the way the file looks like after generation:

// -----------------------------------------------------------------------
// <copyright file="Class1.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace MyNamespace
{
   using System;
   using System.Collections.Generic;
   using System.Linq;
   using System.Text;

   /// <summary>
   /// TODO: Update summary.
   /// </summary>
   public class Class1
   {
   }
}

And thats the way it should look like (and how I want it):

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

namespace MyNamespace
{
   public class Class1
   {
   }
}

I disabled all extensions and all plugins, but the problem stays. Hopefully anyone here can tell my how to restore the previoous behaviour.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:10:39+00:00Added an answer on May 23, 2026 at 7:10 pm

    Visual studio uses templates to generate new files. You can read about how to create your own templates here http://stevesmithblog.com/blog/how-to-fix-visual-studio-file-templates/. The default templates are commonly stored in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates and it is these you’ll want to edit if you want to globally replace the format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently installed Visual Studio Professional 2010 Beta 1 and noticed that most of
I've recently noticed some behaviour with the Visual Studio Designer (C#) that I don't
I've started with Flex recently, I've noticed that some plugin for Visual Studio exist,
I recently updated Visual Studio 2010 to SP1 and noticed the .NET 4 framework
I have recently noticed how interesting Visual Studio's macros are. I did not use
I have recently started using Visual Studio 2010 and ReSharper 5.1. It's working pretty
I recently converted a project to visual studio 2010 then to mvc 3 and
Recently I noticed my application appears to be eating memory that never gets released.
Recently, I noticed some people mentioning that std::list::size() has a linear complexity. According to
I recently noticed that I collected 22GB worth of IntelliTrace recordings. Sadly, I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.