Over a million developers have joined DZone.

Use Strict in Visual Studio

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

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!

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.


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

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

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

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

{{ parent.tldr }}

{{ parent.urlSource.name }}