Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Modifying default 'using' statements

Modifying default 'using' statements

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiowindows-admindebugging
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    roel_v
    wrote on last edited by
    #1

    Does anybody know how / where to modify the default list of 'using' statements that Visual Studio automatically places in new C# files. I use System.Diagnostics in almost every file for Debug.Assert and it's a pain to keep having to add the 'using' for it manually. A friend of mine who works in VB.NET says you can edit the import statements in the project settings, but I can't find the same for C#. I'm open to a hack which modifies it directly in some text file, registry whatever ;-) Roel

    D T 2 Replies Last reply
    0
    • R roel_v

      Does anybody know how / where to modify the default list of 'using' statements that Visual Studio automatically places in new C# files. I use System.Diagnostics in almost every file for Debug.Assert and it's a pain to keep having to add the 'using' for it manually. A friend of mine who works in VB.NET says you can edit the import statements in the project settings, but I can't find the same for C#. I'm open to a hack which modifies it directly in some text file, registry whatever ;-) Roel

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I think you're looking for this[^]. I'd suggest making your own custom template instead of modifying the one that comes with VS.NET.

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • R roel_v

        Does anybody know how / where to modify the default list of 'using' statements that Visual Studio automatically places in new C# files. I use System.Diagnostics in almost every file for Debug.Assert and it's a pain to keep having to add the 'using' for it manually. A friend of mine who works in VB.NET says you can edit the import statements in the project settings, but I can't find the same for C#. I'm open to a hack which modifies it directly in some text file, registry whatever ;-) Roel

        T Offline
        T Offline
        Thomas Stockwell
        wrote on last edited by
        #3

        Some files that you can edit can be found in the following directories: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\NewFileItems C:\Program Files\Microsoft Visual Studio 8\[input .NET language]\DesignerTemplates\1033

        Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups