Questions tagged [auto-import]

the act of importing data, settings or projects automatically to the user's environment. Auto-import features are often implemented in development GUI, e.g. to import java classes, entire projects.

76 questions
833
votes
12 answers

What is the shortcut to Auto import all in Android Studio?

Is there any way of auto importing in Android Studio. Something like the auto-import feature that Eclipse has when you use the keybinding: SHIFT + CTRL + O in Android Studio? Currently I have only found CTRL + ALT + O, which ask each individual…
Michał Tajchert
  • 10,333
  • 4
  • 30
  • 47
227
votes
4 answers

Auto import in Visual Studio Code only offering absolute path with Lerna subpackages in TypeScript

For some reason, very recently my Visual Studio Code changed and started only offering absolute imports from the sub-package level with my Lerna packages, for example: As you can see, the auto import is suggesting the @package/server/src/database…
Anupheaus
  • 3,383
  • 2
  • 24
  • 30
72
votes
10 answers

Python auto import extension for VSCode

Is there a Python auto import extension/plugin available for VSCode? By auto import I mean, auto import of python modules. Eclipse and Intellij has this feature with Java.
32
votes
3 answers

Intellisense for available 'using/import's in C# with Visual Studio Code

Edit: Vidual Studio Code and Visual Studio are 2 different things. Yes it's confusing but I know that VS has this feature, I'm asking about VS code. Is there some extension/setting that makes Visual Studio Code's c# have Intellisense for all…
Fudge Fudge
  • 1,024
  • 1
  • 10
  • 25
24
votes
4 answers

VSCode auto imports for React Native with JavaScript

I know VSCode supports auto import for JavaScript. For some reason, it does not work with React Native. There is even a dedicated section on the VSCode website for this. But it only answers how to fix this problem for Typescript (using…
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
21
votes
5 answers

Auto import for Xcode

Is it possible for Xcode to auto import the frameworks and class headers automatically? What happens is that every time I build, I will encounter errors due to missing import. I know how to fix, but I felt Xcode can be more intelligent by perhaps…
samwize
  • 25,675
  • 15
  • 141
  • 186
20
votes
2 answers

How to disable auto import from specific files in VSCode?

Is there any way to tell vscode to not autoimport from specific files?
Nekor
  • 237
  • 2
  • 7
15
votes
3 answers

PyCharm autoimport with autocomplete

I am giving PyCharm a try for the first time. Coming from an Eclipse/PyDev environment I have to say so far things have been going well. There is one feature I am missing that I can't seem to find though and that is as follows: In the auto-complete…
Xealot
  • 1,659
  • 14
  • 26
14
votes
2 answers

How can I decide to add .idea/jarRepositories.xml in .gitignore

I found an unfamiliar file .idea/jarRepositories.xml, when I updated Android Studio 3.5.3 to 4.0.1 on Mac. The content is as follows:
qtmfld
  • 2,916
  • 2
  • 21
  • 36
14
votes
1 answer

How to configure VS Code Auto import?

Is there a way of tweaking TypeScript Auto import feature in Visual Studio Code? As an example, observe the following attempt: The added line by the Auto import was the following: import { Pins } from '../types/index'; I would like it to be…
Samuel
  • 1,271
  • 1
  • 15
  • 29
12
votes
1 answer

Xamarin auto-import shortcut

In eclipse, it's ctrl+shift+o, which automaticly imports everything. But how can I do this in Xamarin? I don't remember every package and there aren't those lightbulbs, which are in Eclipse that would help me to "quick-fix" the problem. So, is there…
Vilda
  • 1,675
  • 1
  • 20
  • 50
8
votes
0 answers

Change Auto-Import Priority Order In VScode

I'm working on a Next-JS project with TypeScript. Everything was fine till one day, VSCode decided to change my auto-import priorty. In my case, I wanted to import useEffect, useContext,.. from react. But somehow, Vscode auto-import first-place…
Anji
  • 517
  • 2
  • 10
7
votes
0 answers

VSCode auto import not recognising eslint alias/webpack resolve/tsconfig paths

I have an node module which I want to create an alias for. I have the following configs: // tsconfig.json { "compilerOptions": { ... "allowJs": true, "module": "commonjs", "target": "es6", "jsx": "react", …
Uri Klar
  • 3,800
  • 3
  • 37
  • 75
7
votes
1 answer

VSCode auto import React built-in hooks like useState, useEffect

In VSCode, how can I get auto import suggestions for React built-in hooks, like useState, useEffect, etc? Just like what we get in CodeSandbox: Enabled extensions (maybe there is some conflict between them, though I'm not getting any errors):
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
6
votes
2 answers

typescript auto imports not working macos

I have a project and I am adding some typescript but typescript doesnt auto import. And i dont understand why. See below my file structure, tsconfig and an example: ts config { "compilerOptions": { "target": "es6", "module":…
FutureCake
  • 2,614
  • 3
  • 27
  • 70
1
2 3 4 5 6