Web Essentials 1.1 released

Sep 9, 2012

I was debating whether to call this release version 1.1 or 2.0 because it contains quite a lot of new functionality. I’ve decided to stick with 1.1 since it also features a lot of fixes and tweaks to the current functionality. Download it at the VS Gallery. Now, let’s take a tour of the new features.

Option dialog

This was the top requested feature from the original Web Essentials for Visual Studio 2010. It finally made it in.

image

You can set the most important options through this dialog. If I forgot some options, please let me know so I can add them for the next release.

JSHint for JavaScript

JSHint is a really good way of making sure your JavaScript follows certain coding guidelines and best practices. The default settings are very relaxed, but you can turn on more rules through the new options dialog.

image

The error window updates as you type, so you don’t have to right-click the .js file to kick off JSHint. It happens as you write.

Better LESS and CoffeeScript

The LESS editor has been updated with the latest functionality that is needed to truly take advantage of LESS. This includes:

  • Support for @import directives
  • Intellisense across imported .less files for Mixins and variables
  • All the validation from the CSS editor now shows up in LESS
  • Both CoffeeScript and LESS now uses the official compilers
  • Compiles and creates a .css/.js file when a LESS/CoffeeScript file is saved in VS

JavaScript regions

Some people hate them, other people loves them. This is a feature that was in the original Web Essentials 2010 an by popular request now made it in the 2012 version.

image

Re-embed base64 dataURIs

The problem with embedding your images as base64 dataURI’s is to keep it up-to-date with the original image file as it changes. Now you can.

image

Vendor help for @-directives

Vendor specific validation and Smart Tags are now also available for @-directives.

image

New performance validation

Three new validators have been added that analyses the CSS for general performance issues. They validation the following:

  1. Small images should be inlined (base64 embedded)
  2. Don’t use the universal selector (the star)
  3. Don’t over qualify ID selectors

They can be turned on/off in the new options dialog.

Other small features

  • Simple-selector highlighting like C#’s identifier highlighting
  • Option to place validation messages in either Messages, Warnings or Errors
  • Diff any 2 files in Solution Explorer. Might be useful for diffing LESS and CSS
  • Collapse long base64 dataURI’s
  • Auto-insert closing curly with type-through support
  • New LESS and CoffeeScript item templates. More to come in next version

Bug fixes

Thank you so much for reporting bugs. That is really helpful and increases the quality of the extension in general. Here are some of the bugs reported by the users:

  • Invalid LESS and CoffeeScript would result in an ugly error message and crash VS sometimes
  • Intellisense for animation-name now also applies to animation
  • LESS formatting for negative units no longer inserts an invalid space
  • Dark theme now works for the browser support tooltip
  • Mustache/Handlebars no longer screws up JSON strings
  • Wrongly inserted color swatches for LESS variables

Download

Visual Studio 2012 will alert you of this update if you already have the previous version of Web Essentials installed. If not or VS didn’t alert you yet, go download it at the VS Gallery.

* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Comments (25) -

Juan Valenzuela
Juan Valenzuela United States
9/9/2012 3:29:50 PM #

Very nice set of changes Mads! Developing with VS 2012 is becoming easier and sweeter every day. Thanks a lot.

j
j United States
11/22/2012 8:40:10 AM #

test commenthghggyhuhuh

Markus Klug
Markus Klug Germany
9/10/2012 4:09:09 AM #

Thank you Mads, fantastic job as always!!

Loving the jsHint integration. but would it be possible to allow the definition of custom globals in a freetext-field?


Mads Kristensen
Mads Kristensen United States
9/10/2012 8:17:48 AM #

Yes, I'm gonna look at that now. You can always do it manually in the individual .js files using the JSHint comment syntax

Markus Klug
Markus Klug Germany
9/10/2012 11:58:05 AM #

Thanks for your quick response Mads.

>> You can always do it manually in the individual .js files using
>> the JSHint comment syntax

Yes, that is my workaround at the moment. But our project already has 100+ .js files (and growing) and it would be much easier to be able to manage that in one place.

Thanks again for your outstanding work!

ügyviteli szoftver
ügyviteli szoftver United States
9/10/2012 5:28:32 AM #

Juan: +1

Per Holje
Per Holje Norway
9/11/2012 2:53:01 AM #

Very nice functionality, but I am having some problems with the JSHint part. It locks up after a little while, and stops updating the messages list. Only remedy seems to be restarting VS.

bb
bb United States
9/11/2012 1:33:58 PM #

Is there a way to skip a file for JSHint? Also, it doesn't seem to work when using the globals?

e.g. /* global WinJS:true */ it still shows WinJS as  not defined in Messages

Mads Kristensen
Mads Kristensen United States
9/11/2012 4:07:06 PM #

bb,

You can't skip a file from the Web Essentials itself, but you can skip it by turning things off using the JSHint comment syntax at the top of your .js file. Everything from the JSHint docs will work http://www.jshint.com/docs/

Fredi Machado
Fredi Machado Brazil
9/13/2012 5:02:08 AM #

Thanks Mads, that's just awesome!

Don
Don United States
9/13/2012 6:29:28 AM #

Great Mads thanks!  Any chance you'll make this available for 2010 as well?  Thanks again.

Mads Kristensen
Mads Kristensen United States
9/17/2012 8:53:27 AM #

The VS2010 version of Web Essentials (visualstudiogallery.msdn.microsoft.com/6ed4c78f-a23e-49ad-b5fd-369af0c2107f) cannot include much of the new stuff in WE2012, due to major changes in the extensibility model in VS2012

Don
Don United States
9/17/2012 9:53:14 AM #

Bummer.  Thanks again for the great work!

Philip
Philip United States
9/16/2012 5:10:10 PM #

Nice....but I think you can do better for a BlogEngine.net theme....this one is rather boring.

Mads Kristensen
Mads Kristensen United States
9/17/2012 8:54:54 AM #

Dev art FTW! Smile

Thanigainathan
Thanigainathan India
9/18/2012 4:33:32 AM #

Long awaited features now released. Thanks

Karthik Sukumar
Karthik Sukumar India
9/19/2012 6:15:27 AM #

Any version that is compatible with the VWD Express 2012?

Sam Lin
Sam Lin United States
9/28/2012 1:02:39 PM #

The must-have add-on ! What a great work ! Thank you !!!

Mads Kristensen
Mads Kristensen United States
9/28/2012 2:04:03 PM #

Thanks Smile

chauffeur london
chauffeur london United States
10/8/2012 11:00:27 AM #

Your Post is very useful, I am truly happy to post my note on this blog . It helped me with ocean of awareness

airport transfers heathrow
airport transfers heathrow United States
10/8/2012 11:01:15 AM #

Cool. Been looking for this info for almost a day and thanks i found this

diploma of business
diploma of business United States
10/13/2012 11:22:30 AM #

Thank You for that informative post. I really love to read articles that have good information and ideas to share to each reader.

certificate in customer contact
certificate in customer contact United States
10/13/2012 11:22:50 AM #

I hope to read more from you guys and continue that good work that is really inspiring to us.

tadalafil
tadalafil United States
11/29/2012 4:31:57 PM #

Thank You for that informative post. I really love to read articles that have good information and ideas to share to each reader.

Alex O
Alex O Canada
12/5/2012 4:54:54 PM #

First time user. Loving it so far. Thanks!

Pingbacks and trackbacks (3)+

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.