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

Jumpstart your Angular applications with Indigo.Design, a unified platform for visual design, UX prototyping, code generation, and app development.

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!

Take a look at an Indigo.Design sample application to learn more about how apps are created with design to code software.

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 }}