Results 1 to 1 of 1

Thread: Tutorial: Changing Default tempelates in .net 2003

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Belgium
    Posts
    167

    Tutorial: Changing Default tempelates in .net 2003

    Hi all.
    If you wan't to change the default tempelate you have to change a file.

    Step 1: goto your directory of .net 2003 (default: C:\Program Files\Microsoft Visual Studio .NET 2003) and browse to 'VC#\VC#Wizards'

    Step 2: where gonne change the console tempelate of c# . todo so open the folder called 'CSharpConsoleWiz' and browse to 'Templates\1033'

    Step 3: there you see a file called 'file1.cs'. rename that file to 'old_file1.cs

    Step 4: create a new cs file in the same directory where 'old_file1.cs'(file1.cs) is located

    Step 5: Open this file and add this code, or add your own code.

    VB Code:
    1. // Teckniel's Custum code
    2. using System;
    3.  
    4. namespace [!output SAFE_NAMESPACE_NAME]
    5. {
    6.     class [!output SAFE_CLASS_NAME]
    7.     {
    8.         static void Main()
    9.         {
    10.  
    11.             Console.WriteLine("Press any key to continue"); string sWaitForKeyPress = System.Console.ReadLine();
    12.         }
    13.     }
    14. }

    This is how you do it to customize your own predefind tempelate.
    And now I can use F5 all the time so when i run the debugger my program don't quit. ;-)
    Last edited by Teckniel; Nov 23rd, 2005 at 05:12 PM. Reason: changed samthing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width