Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Use Strict in Visual Studio

DZone's Guide to

Use Strict in Visual Studio

· Web Dev Zone ·
Free Resource

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

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 now all good JavaScript developers know that fact, and those same good JavaScript developers also know that you ALWAYS use strict in your code.

While it is trivial to type the thirteen key strokes (I just did that to count how many it was, *sigh*, thirteen less than 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 have had support for JavaScript snippets.

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

Download the snippet!

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}