Use Strict... in Visual Studio

Visual Studio is The Best IDE for JavaScript. I’ve said that many times before, and it remains true that as a JavaScript developer on any platform, Visual Studio will make your life easier than any other IDE. So all good JavaScript developers know that fact now, and those same good JavaScript developers also know you always use strict in your code.

While it is trivial to type the thirteen keystrokes (I just did that to count how many there were—sigh—thirteen fewer from my allotment of keystrokes), you may want to make it even easier by using a great feature in Visual Studio called snippets. Since Visual Studio 2010, we’ve had support for JavaScript snippets.

So I’ve created a simple, free snippet for you to use: the "use strict" snippet. Once added to Visual Studio, the snippet will let you type use and hit Tab to get the "use strict" line in your JavaScript! Yay for simple things!