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.
auto-import
89
questions
0
votes
1
answer
73
views
VScode autoimport should always be absolute paths except file is in the same directory
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 directory. ...
0
votes
0
answers
123
views
Sensible auto-completion at point with python-lsp-server and rope auto-import enabled in emacs
I use emacs with python-lsp-server (pylsp) for python development (I attached my setup below).
Pylsp supports auto-import via rope. You have to enable it by setting lsp-pylsp-plugins-rope-autoimport-...
0
votes
0
answers
30
views
no auto import in vscode [duplicate]
I have a problem with vscode and I would appreciate your help. Until yesterday evening my react project using react-router-dom, redux was auto importing but now it doesn't make any suggestions or ...
3
votes
0
answers
77
views
How to prioritize VS Code Auto-Import modules from my local directories over node_modules? [duplicate]
I often face an issue with the auto-import feature in VS Code where, upon typing the name of a module that exists both as a local module (or function) and within node_modules, VS Code's auto-import ...
-1
votes
1
answer
479
views
Svelte automatic imports do not work in Visual Studio Code
In preview application I was working on when I typed the name of the component. Like this:
I gave an import. Automatically added to script.
`<BaseSelect options={optionsDifficulty} defaultValue={...
0
votes
0
answers
32
views
Use different importModuleSpecifier Visual Studio Code for sub packages in monorepo
I want to use different auto imports in packages in my pnpm workspace, most of the repos are fine with relative but in one I want to use non-relative imports, I have tried creating multiple settings....
0
votes
0
answers
271
views
unplugin-auto-import/vite can't use object's method in template
When using unplugin-auto-import in a Vite project to automatically import dependencies, the _.isArray function from a file (src/utils/lodash.ts) is working correctly in the script context but fails in ...
0
votes
0
answers
301
views
How to configure JetBrains IDE (PhpStorm or WebStorm) to autocomplete Vue components from sibling project in monorepo
I am trying to solve a problem related to PhpStorm's and/or WebStorm's auto-import feature of Vue components.
I have a monorepo project structure (attachment 1) with a component library project and a ...
0
votes
0
answers
73
views
VSCode: React (or globally) disable auto imports
I'm using the Javascript code snippets extenstion in VSCode, which is very useful.
Typing 'clo' and pressing tab is a default shortcut for creating a console log of an object.
The problem I'm having ...
1
vote
0
answers
94
views
getting list of files inside an auto-imported folder by nitro
I auto-imported an entire folder in nuxt 3 (server-side) by this:
nitro: {
imports: {
dirs: [
'./server/models/**.ts'
]
}
},
now i need to have an array of all files inside server/...
1
vote
1
answer
862
views
auto-import entire folder in nuxt 3 (server side)
I need to import all script files inside a server folder server/models
and i tried these inside nuxt.config file:
nitro: {
plugins: ['~/server/index.ts'],
scanDirs: ['~/server/models']
},
...
0
votes
0
answers
51
views
ups-worldship autoimport xml signature required not working but the label prints
Does anyone have an example of adult signature required for worldship ups xml autoimport? I get the label to print but the package gets left on the porch no signature.
<element type = "...
0
votes
0
answers
29
views
I'm having trouble auto importing a Class with private members from one project to another on IntelliJ
Anyone on here familiar with VS Code, Mac OS and Dart/Flutter. I'm having issues with Visual Studio Code with both setting up Flutter and get & set methods for private properties. For getters and ...
-3
votes
1
answer
238
views
Python auto importer for Sublime Text [closed]
I believe Sublime Text is by far the most optimized and powerful "text
editor".
However, for writing any code you need some IDE-like features that help you write code faster and more ...
0
votes
0
answers
105
views
Why is Parcel 2 not auto-installing imports as it was the case in Parcel 1?
I am trying to learn how to use Parcel and following the "learn web-dev" tutorial from Mozilla. The tutorial runs npm install parcel-bundler but when I did that I got the warning that it is ...