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:
// Teckniel's Custum code using System; namespace [!output SAFE_NAMESPACE_NAME] { class [!output SAFE_CLASS_NAME] { static void Main() { Console.WriteLine("Press any key to continue"); string sWaitForKeyPress = System.Console.ReadLine(); } } }
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. ;-)




Reply With Quote