vscode-extension-auto-import icon indicating copy to clipboard operation
vscode-extension-auto-import copied to clipboard

Improve support for multiline import

Open killalau opened this issue 7 years ago • 1 comments

This extension is really awesome! If it can also support for multiline import, it will be perfect.

Let's say original I've the following import statements at the top.

import React from 'react'
import {
  View,
  Text,
} from 'react-native';

When I put a new component in the render function (let's say <MyComponent />), the auto import will generate the new import in wrong place.

import React from 'react'
import {
import MyComponent from './MyComponent';
  View,
  Text,
} from 'react-native';

Expected:

import React from 'react'
import {
  View,
  Text,
} from 'react-native';
import MyComponent from './MyComponent';

killalau avatar Nov 01 '17 15:11 killalau

+1

Coderah avatar Nov 13 '17 18:11 Coderah