Skip to content

Copy/paste messes up correctly formatted code #677

@abarth

Description

@abarth

Steps to Reproduce

  1. Open a dart file in a Flutter project.
  2. Copy the following to the clipboard:
  double estimateScrollOffsetExtent({
    int firstIndex,
    int lastIndex,
    double leadingScrollOffset,
    double trailingScrollOffset,
  });
  1. Paste into the body of a class declaration.
  2. Notice that you get the following text:
  double estimateScrollOffsetExtent({
  int firstIndex,
  int lastIndex,
  double leadingScrollOffset,
  double trailingScrollOffset,
  });

The pasted text has removed two spaces of indent each from lines 2 through 5.

Version info

[✓] IntelliJ IDEA Community Edition (version 2016.3)
    • Dart plugin version 163.9166.22
    • Flutter plugin version 0.1.8.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions