Can I set the default text to display in each newly created script file in VisulStudio 2010?

What is it. My question is disgust in the title. I will try to describe the problem in more detail. When I create a new script file in my database project, it is created with the following default text:

-- ============================================= -- Script Template -- ============================================= 

I want to have different text when creating a new script file. How can i do this? Are there any settings in VS 2010?

+4
source share
2 answers

There are different (at least 2) approaches that I know to achieve what you want.

  • Use patterns
  • Use macros

You can find the implication of both of them here:

Add document title for files automatically in Visual Studio

+2
source

I do not know the exact location, but there must be a template file that you can change. Try to find the header in your VS2010 installation and in the AppData VS2010 folder. You must find the Template.

0
source

Source: https://habr.com/ru/post/1399741/


All Articles