auto-import Questions

1

Goal VScode autoimports my imports as absolute path except the file is in same directory. Example Assuming we have ComponentA and ComponentB in the same directory, but a service in another director...

10

Solved

Is there a Python auto-import extension/plugin available for VSCode? By auto-import I mean automatically importing of Python modules, so if you type sys.argv then it should automatically import the...

5

Solved

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 imp...
Sinatra asked 20/9, 2018 at 19:41

2

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 ...
Bathilda asked 19/2, 2020 at 15:8

3

Solved

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...
Lingcod asked 8/6, 2011 at 19:59

4

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 t...

2

Solved

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 { "compilerOpti...
Gagliardi asked 23/6, 2020 at 17:16

1

I'm struggling with Next.js project I'm working on using VSCode. It is based on simple npx create-next-app I'm writing a component (page) and of course need to use react hooks like useState Before ...
Stereobate asked 24/5, 2022 at 13:12

2

Solved

Is there any way to tell vscode to not autoimport from specific files?
Rillings asked 13/12, 2017 at 15:19

0

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 rea...
Lector asked 16/9, 2021 at 11:22

12

Solved

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 ...
Presence asked 17/5, 2013 at 17:45

3

Solved

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 Visu...
Stoller asked 28/12, 2018 at 20:42

2

Solved

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: <?xml version="1.0" encoding="UTF-8"?&gt...
Foreordination asked 10/8, 2020 at 15:1

1

In VSCode, auto imports are not correct on MacOS. This is what I see when referring to an unimported module in VSCode. However, the file path is incorrect. This path assumes that the file is ...
Voorhees asked 15/7, 2019 at 19:23

0

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", ...
Stretch asked 21/2, 2020 at 11:32

1

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 { P...
Maliamalice asked 1/2, 2018 at 3:57

1

Solved

Apparently with the latest upgrade to Android Studio (2.2.2 built 18 oct 2016), it now displays blue popup hints (AKA Auto Import Suggestions) in the editor, hovering over the line where you have y...
Leanaleanard asked 30/11, 2016 at 22:41

5

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, b...
Tiberius asked 24/2, 2011 at 8:17

1

Solved

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 wo...
1

© 2022 - 2024 — McMap. All rights reserved.