在WebStorm的自动导入功能中,是否可以在导入和大括号之间添加空格?

Currently how the auto import looks like:

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

I want to change it to:

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

推荐答案

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

Angular相关问答推荐

无法绑定到ngIf,因为它不是dis angular 17的已知属性

为什么当我在父组件中设置数组元素时,Angular重新创建子组件而不是更新它?

垫-菜单未以17.2.3角显示

如何在HTML外部项目中使用Web组件(以17角创建)

命令不起作用的初始菜单项

茉莉花-模板中调用了如何判断角管

在Angular 17独立模式下,如何使用Swiper 11.0.5版使Bootstrap下拉菜单在Swiper元素外部可见

在Angular 17的本地服务应用程序时禁用SSR

升级到 Ng 16 - npm 错误!对等依赖冲突:@angular/compiler-cli@16.2.1

无法绑定到formControl,因为它不是input的已知属性

将查询参数附加到 URL

为什么 Angular2 routerLinkActive 将活动类设置为多个链接?

导航到同一条route路由不刷新组件?

visibility:hidden

如何在 Angular 6 中使用 mouseover 和 mouseout

如何在 angular2 中的 div 的 contenteditable 上使用 [(ngModel)]?

RxJS - 发生错误时观察到的不会完成

ng-template 上的 *ngFor 不输出任何内容

Angular2动态改变CSS属性

Angular2/4 中的ng-reflect-*属性有什么作用?