When I go to "Add New Item" in VisualStudio and choose my custom item template (and also with the default item templates) the default entry for the name is XY1.cs
, always having the 1
in the end, although the 1
is not given in the vstemplate file.
So as far as I know VS increments this number if an element with the same name already exists.
But why does it start with 1
and is not left out? And can I prevent VS from adding the 1
in my custom template? I want to add an additional string to the given name in my template but often the user does not remove the 1
or does just oversee it, so it results in {WantedFilename}1{AdditionalString}