angularimportautocompletesublimetext2auto-import

How do I get import statements search files within for angular project using sublime?


I generated angular 4 project through CLI and opened in Sublime 3 Text editor.Prior to this I was using VSCode which searched files within the project when I used to type import statements such as below.

import { AppComponent } from "./app.component";

However when I use sublime text 3 it does not show any suggestions when I type import { } from "./ and hit ctrl + space.


Solution

  • There are 2 plugins that I know can help you.

    1. FuzzyFilePath.

    2. Auto​File​Name.

    Search them and download them from Package Control.