Intellij idea IntelliJ-使用自动格式化/重新格式化时展开角度导入
我在使用IntelliJ自动格式化时遇到问题。当我按下Ctrl+Alt+L时,IntelliJ将从一条线到多条线展开许多导入,如下例所示:Intellij idea IntelliJ-使用自动格式化/重新格式化时展开角度导入,intellij-idea,webstorm,jetbrains-ide,Intellij Idea,Webstorm,Jetbrains Ide,我在使用IntelliJ自动格式化时遇到问题。当我按下Ctrl+Alt+L时,IntelliJ将从一条线到多条线展开许多导入,如下例所示: import { Component, ElementRef, Input, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core'; 但之前的一切都在一行: import {Component, ElementRef, Input, OnInit, Q
import {
Component,
ElementRef,
Input,
OnInit,
QueryList,
ViewChild,
ViewChildren
} from '@angular/core';
但之前的一切都在一行:
import {Component, ElementRef, Input, OnInit, QueryList, Renderer2, ViewChild, ViewChildren} from '@angular/core';
我可以强制IDE不要将这些导入展开成这么多行吗
编辑
在Intellij->Settings->Editor->Code Style->JavaScript中选择ES6导入/导出=不包装很遗憾,我没有看到ES6导入/导出。我添加了截图。请看一下。在包装和支架选项卡中