DOM- and Schema-Based Code Completion - Based on its deep knowledge of HTML/XHTML and XML code, WebStorm is capable of completing:
- file references
- tag names
- closing tags
- In CSS, code completion works for:
- HTML IDs
Validation and Quick-Fixes - WebStorm detects and suggests auto-fixes for such problems as:
- invalid CSS selector format
- invalid CSS properties
- unused CSS class definitions
- invalid local anchors and more...
- missing required attributes
- invalid attributes or illegal values
- Wrong references to files in links
- Duplicate attributes
Whenever you see a bulb, hit Alt+Enter to see what WebStorm suggests
Show Content - Quick Definition Lookup on a CSS ID immediately shows a popup displaying the actual styles defined for this particular ID; when invoked on an image file reference, you will see an image preview. This works both in code and in completions lists.
Zen Coding - WebStorm allows you to use the power and speed of Zen coding. All abbreviations are available for creating new content and for wrapping an existing structure. Having difficulty understanding where the styles come from for a particular tag in your page? Right-click it and choose Show Applied Styles for Tag. This command opens a tree-view of all styles that are applied to the tag by CSS, with all possible overrides.
Extract Embedded Styles - Allows you to clean your HTML code by moving styles embedded inside tags to either the current file <style> section or to a linked external .css file. Simply invoke 'Extract Embedded CSS' quick-fix, specify CSS selector and the destination for the new CSS class.
Code Navigation and Usage Search - Numerous code navigation and usage search options:
- Go to declaration - navigates to where the function, variable or label in question is declared with a simple hotkey or Ctrl+Click.
- Go to symbol - navigates to any symbol in project code using search patterns, including asterisk (*) or CamelHump abbreviations.
- Safe Delete
- Extract embedded script into file
- Extract Variable/Function
- Inline Variable/Function
- Customizable breakpoint properties: suspend mode, conditions, pass count and more
Some specific features include:
- Code completion for every framework
- JSDoc and DoJo style type annotations support for better code completion and parameter type information
- Quick Documentation lookup for JSDoc and DoJo style commands
More Than Code
Batch Code Analysis - No need to click through all the files or deploy to a server to spot errors and warnings. Start Code Analysis for the whole source tree, select Inspections to run, and see all results in a single view.
Spellchecker - Integrated spellchecker verifies texts in tags, code strings and comments to avoid misspellings and typos on your web pages. To ensure better code readability even variable names, CSS classes and IDs are spell-checked. To configure spellchecker specify the options for 'Spelling' inspection in Inspections settings.
FTP and Remote Files Syncronization - Open files from a remote host, FTP, or a mounted network drive using simple configuration and an intuitive user interface. Edit project files locally and deploy back to a remote server using automatic synchronization on file save or on demand.
Version Control Systems Integration - WebStorm supports most popular Version Control Systems:
All the tedious tasks (adding, removing, deleting files) are performed automatically. A built-in visual merge tool resolves all conflicts in a quick and intuitive manner. The changes made locally are highlighted as you type in the editor gutter, providing intuitive navigation and a 2-click rollback for individual changes.
The following features are available no matter what VCS you use:
- Integrated changelists - group your changes into multiple change lists for better ogranisation
- Shelved changes - set aside some changes to restore them later on
- Repository Changes view - see what has been committed by other team members
- Incoming Changes view - see the code changes not yet integrated into your local copy
- Outdated Changes Notification - get warned that a file you are working with has been changed after your last sync.
- Local History - WebStorm tracks any changes made to your source files, protecting you from any accidental losses or modifications, even if made by other applications. At any time you can inspect the history of either a particular file or directory and rollback to any of its previous versions. You can also set version labels.