See a demo videoNew!! See a video demoing how the features of Web Essentials are ported to Visual Studio 11. Report bugs |Suggest features | Follow on Twitter The Web Essentials extension lets you perform common tasks much easier. This is a work in progress, and more features being added soon. Follow me on Twitter to get up-to-date info about the frequent updates to this extension. You can also use UserVoice to vote up new features that you would like in Web Essentials. Features include: StylesheetsLive Web PreviewThe Live Web Preview tool window loads your website/project in a browser and will update every time you save or build. You can turn on live editing for CSS which lets you see your CSS changes on your actual website as you type each keystroke. Right-click your web project item in Solution Explorer and click "Live Web Preview" to show the window and load the website. You can also just type CTRL+ALT+Enter to do the same. Vendor specific property generationA lot of the new CSS 3 properties only work cross-browser if vendor specific properties are added. These include -moz, -webkit, -ms and -o. The result is the insertion of the missing vendor specific properties in the right order. If one or more of the vendor specific properties are already present, then only the missing ones are added. Up- and down arrows control numeric valuesWhen the cursor is in or next to a numeric value such as 5px, .6em, 15% or just 23, you can use CTRL+UP to increase the number and CTRL+DOWN to decrease it. The feature is known from FireBug. This works for CSS, SaSS, LESS and JavaScript files. Embed url() references as base64 stringsThis will take the referenced image and base64 encode it directly into your stylesheet. You have then eliminated an HTTP requst. If the base64 string becomes to long, you can easily collapse it. Comment and uncomment supportUse (CTRL+K, CTRL+C) to comment the selection and (CTRL+K, CTRL+U) to uncomment. This is the same keyboard shotcut as in the C#/VB editors. Speed typingMake typing much faster and easier with Speed Typing which is explained and demoed in this videohttp://madskristensen.net/post/CSS-speed-typing-for-Visual-Studio.aspx TODO commentsA glyph in the left margin of the CSS and JS editor is shown whenever it finds the text "TODO" in any comment in the document. Color preview on mouse hoverFont preview on mouse hoverImage preview on mouse hoverSupport for regions /*#region MyRegion */Select the text you want to surround with a region, right-click the selection and click "Surround with region". This will insert the region comments that makes it possible to collapse and expand regions as needed. Alphabatize propertiesA Smart Tag on every selector enables you to easily sort all the properties alphabetically within the rule. Brace matchingBracematching is now enabled for 3 types of braces: {}, [] and () Minify selection (removes whitespace etc.)Will use the AjaxMin library to minify the selected text in the CSS editor Code collapsing/outliningAll rules and @-directives now get's code outlining which can be collapsed and expanded as needed. Drag and drop support for imaged and fontsDrag and image onto the editor from either Solution Explorer or your desktop and a background-image property will be inserted with the relative path to the image file. Do the same with a font file, but in this case all font files with the same name but different extensions (.ttf, .eot, .woff, .otf) will be added to the same @font-face rule. Convert easily between hex, rgb and named color valuesAdds SmartTags to selectors for targeting specific IE versionsSpecific hacks can be used to target specific versions of IE on a selector level. These are all valid according to the W3C. Adds SmartTags to properties for targeting IE6 & IE7Makes it easy to apply the CSS hacks needed to target specific versions of IE. JavaScriptCustom regionsYou can add custom region by adding the following comments: //#region MyRegion function Example() { } //#endregion Code collapsing/outliningYou can now collapse functions, if-statements, loops and other structures just like in C#. Brace matchingTo provide better overview over more complex functions and other structures, brace highlighting helps to quickly identify which braces belongs together. Same-word-highlightingAll instances of the word that the caret is placed in will be highlighted. This makes it easy to see where variables are used. Minify JavaScriptWill use the AjaxMin library to minify the selected text in the JavaScript editor Right-click folder now includes Add JavaScript and StylesheetsHTMLDrag 'n drop user control in the editorWhen you drag a user control from Solution explorer onto a page, master page or another user control, you will now get a correctly registered and inserted reference. Before it would create an <a> element pointing to the user control instead of adding it as expected. Drag and drop support for audio and video filesStay tuned for more features in the near future and feel free to leave any feedback and suggestions on features you want in the CSS, HTML or JavaScript editors. Thanks Change logVersion 2.7
Version 2.6
Version 2.5
Version 2.4
Version 2.3
Version 2.2
Version 2.1
Version 2.0
Version 1.9
Version 1.8
Version 1.7
Version 1.6
Version 1.5
Version 1.4
Version 1.3
Version 1.2.1
Version 1.2
Version 1.1
Version 1.0.1
Version 1.0
Version 0.9
Version 0.8
Version 0.7.1
Version 0.7
Version 0.6
Version 0.5
Version 0.4
Version 0.3.2
|