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

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

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!

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

Topics:

Published at DZone with permission of Robert Maclean, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}