Over a million developers have joined DZone.

Use Strict in Visual Studio

DZone's Guide to

Use Strict in Visual Studio

· Web Dev Zone
Free Resource

Try RAD Studio for FREE!  It’s the fastest way to develop cross-platform Native Apps with flexible Cloud services and broad IoT connectivity. Start Your Trial Today!

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!

Get Your Apps to Customers 5X Faster with RAD Studio. Brought to you in partnership with Embarcadero.


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

Opinions expressed by DZone contributors are their own.


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.


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

{{ parent.tldr }}

{{ parent.urlSource.name }}