Adding spaces between imports and braces in WebStorm

Gabriel picture Gabriel · Jan 29, 2017 · Viewed 13.7k times · Source

Is it possible to add spaces between imports and braces in WebStorm's auto-import feature?

Currently how the auto import looks like:

import {AbstractControl} from '@angular/forms';

I want to change it to:

import { AbstractControl } from '@angular/forms';

Answer

yivo picture yivo · Jan 29, 2017

Yes. Go to WebStorm -> Preferences -> Editor -> Code Style -> JavaScript -> Spaces (second tab), scroll to section "Within" and check ES6 import/export braces. enter image description here