question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable Auto-Import

See original GitHub issue

First of all, this is an amazing project for prototyping Web applications or developing applications on devices not capable of handling full-fletched IDE’s (e.g. Raspberrys, Tablets, etc.). I’m also heavily looking forward to #9 as it’s otherwise quite tedious to create new components/services/etc.

Another suggestion that I couldn’t find (or i’ve just missed) is a better auto-import:

  • Auto-complete can’t find Modules from dependencies you added (like the angular material modules)
  • When creating a new component right now and adding it to the declaration array in the AppModule the editor can’t find the new component
  • Even the angular classes like e.g. Component are not being found
  • Not thoroughly tested but it seems that the React classes like Component are not available through Intellisense

For all of those you have to manually add the import { ... } from './....ts'; manually and without any file system auto-complete this can get quite tedious, especially when importing something from an external dependency.

I’m quite used to an auto-import behaviour from IntelliJ but even VSCode can support something like this with plugins like Auto-Import.

So as you were mentioning natively implementing VSCode plugin behaviour and what functionally is needed in #3 I feel this would be an important addition if possible.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:43
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
d3lmcommented, Sep 26, 2019

@vargalas @andreElrico Yep, we are working on auto-imports!

12reactions
EricSimonscommented, Aug 10, 2017

@ExTheSea I totally agree & really love this idea. It’s super annoying to have to guess & check whether you’re importing the right thing from the right place all the time 😒

@claytonschneider wanna take this on?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto Import | IntelliJ IDEA Documentation - JetBrains
This option enables automatic insertion of import statements if there's only one source of import. Exclude from auto-import and completion.
Read more >
Any way (or shortcut) to auto import the classes in IntelliJ IDEA ...
When looking for a command/keyboard shortcut, type Ctrl-shift-A (or Cmd-shift-A on Mac), and search for the command. For example here, typing " ...
Read more >
Enabling auto import - Dell
Enabling auto import · Press <Ctrl> <N> to access the Ctrl Mgmt menu screen. · Press <Tab> to move the cursor to Enable...
Read more >
Auto-import Classes in IntelliJ | Baeldung
Auto -import. There are several options in IntelliJ IDEA that we may configure in Settings > Editor > Auto Import: import1.
Read more >
Auto Import - Visual Studio Marketplace
Automatically finds, parses and provides code actions and code completion for all available imports. Works with Typescript and TSX. Big thanks ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found