I'm (still) trying to find a way to edit the default Visual Studio 2012 template so that every new JavaScript file I create has the ECMAScript5 "use strict"
pragma at the top of each file. I came across at least one similar question for C# templates, but those questions do not address Visual Studio 2012. Ultimately, the answer might be the same as the VS 2010 answer in the end (I haven't finished my research to come to a firm conclusion about it), but let's suppose the existing answer is insufficient for the newer version.
Does it make sense in this case to make a comment/question on the existing answer, or should I ask a new question for the new version?
- If I make a comment on the existing answer, and someone can answer the question via comment or an edit, this maintains a canonical location to find the answer for every version, but if no one notices the comment or no one can answer the followup, it might take a while for the answer to be edited, and perhaps even longer for me to notice the edit.
- Asking a new question has the benefit of getting a higher chance at a quicker answer, as well as instant notification of the answer (I'm leaning this way), but then there would be now two different places to find a canonical answer. I suppose I could in this case also, once the answer is given, edit the original answer as well.
ItemTemplate
directory, used in different contexts, and"use strict"
would have to be placed in all of them for it to be used in every context. I edited the question and left an additional comment.