Sublime Text Typescript auto import plugin [closed]
Asked Answered
O

0

17

I am working with the new angular 2 beta, and I am getting to love typescript. However, there has been one thing to really annoy me and that is having to constantly go to the top of the page and do an import statement.

ex: Take notice of the 1) and 2)

import {OnInit} from 'angular2/core';// <---- 2) I WOULD LIKE A PLUGIN THAT WILL DO THIS!

export class TestComponent implements OnInit // <-- 1) ONCE I TYPE THIS {
    ngOnInit(): any {
    }
}

I have seen this implemented in a text editor I assume was webstorm (It was in the Mindspace video tutorials for angular2 on youtube), but I would like to know if there are any plugins available or anyone willing to create such plugin for Sublime Text 3 that can have the same features.

I notice that the webstorm plugin had these features

  • it would create the import statement when it detected a component from another file to be imported
  • it would include the source to that file when the import statement was added
Odds answered 11/3, 2016 at 4:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.