Book Image

WebStorm Essentials

By : Stefan Rosca, Den Patin
Book Image

WebStorm Essentials

By: Stefan Rosca, Den Patin

Overview of this book

<p>JetBrains WebStorm is a commercial and powerful IDE, perfectly equipped for complex client-side development and server-side development with Node.js. It provides first-class support for JavaScript, Node.js, HTML, and CSS. WebStorm is the number one choice for developing web applications due to its advanced features and integration with a plethora of topical technologies such as Meteor and Gulp.</p> <p>This book will be your companion in building high-quality web applications using WebStorm, taking advantage of the newest features of Webstorm 10.</p> <p>You will start with an introduction to the latest features of WebStorm and its interface, followed by learning how to set up a new project with the help of templates. You will then build a web application using AngularJS, ReactJs, Node.js, Express, and Meteor. This book will also show you how to use pioneering HTML5 technologies in mobile application development and package managers, as well as how to build automation tools for your application. Finally, you will discover how to perform debugging, tracing, profiling, and code style checking activities directly in WebStorm, followed by testing your application inside WebStorm, using some of the most popular testing libraries out there.</p> <p>By the end of this book, you will have a solid understanding of how to develop powerful web applications quickly and easily with WebStorm.</p>
Table of Contents (16 chapters)
WebStorm Essentials
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
5
AngularJS, React, Express, and Meteor – Developing Your Web Application
Index

Working with Emmet


Emmet is a set of plugins, which enables the user to use a special syntax that can be transformed to HTML, JSX, or CSS. It is a productivity boost that allows the user to quickly write the code. In WebStorm, the configurations are made in the settings pages found under the Settings | Editor | Emmet page. There are separate configuration pages for General, HMTL, JSX, and CSS settings, as seen in the following screenshot:

Before we start, make sure that you have the Bootstrap example open, and then open the index.html and main.css files.

While you type your Emmet code, WebStorm will show a preview window if you have selected this in the HTML settings page. It is a good idea to do that in the beginning while you get accustomed to the syntax. The preview will show what your final code will look like.

Now you have to insert the sample in the index.html file after <h1>, so position your caret there, and type ul#features>li.feature*4. Then press the Tab key. This will expand...