autocomplete-paths | Autocomplete Paths for Atom | Autocomplete library
kandi X-RAY | autocomplete-paths Summary
kandi X-RAY | autocomplete-paths Summary
Autocomplete Paths for Atom
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a regexp from the pattern .
- Creates a new fastqueue .
- Compares two objects .
- expand macros
- merge two streams
- queue a promise in queue
- Set the listener for a given listener .
- Creates template source code .
- Activate the routes
- Test if the pattern match .
autocomplete-paths Key Features
autocomplete-paths Examples and Code Snippets
Community Discussions
Trending Discussions on autocomplete-paths
QUESTION
I've used Atom for years for React coding. I've wanted to switch over to VSCode, since it seems that's the direction the community is moving. But one thing has kept me. In Atom, there's an extension called autocomplete-paths
that allow you to do a relative import
without knowing exactly where the file is you want to import. So, I could do:
import MyComponent from 'MyComponent'
...and then the extension will turn that into:
import MyComponent from '../../path/to/file/MyComponent'
Given that my React project is set up to do relative imports, this is a must-have feature for me, since there's no way I can possibly commit my entire project directory structure to memory.
I've looked multiple times at the VSCode Intellisense stuff, but I can't find anywhere in the documentation that explains how to do this.
Am I missing something? Does this feature just not exist in VSCode?
...ANSWER
Answered 2019-Nov-26 at 04:24The core issue you seem to be after is automatically adding imports. VS Code supports that out of the box for JavaScript and TypeScript. Extensions can add this for other languages as well.
Automatic imports work in a different way that you ask for but solve the same problem. In VS Code, to add an import you'd type MyComponent
somewhere in the file and accept the suggestion for it. Accepting the suggestion will automatically add the import.
If you want to force the import paths to always be relative, set: "javascript.preferences.importModuleSpecifier": "relative"
QUESTION
i'm using atom text editor 1.20.1 using it for the first time
packages i'm using are: 1.autocomplete-paths 2.emmet 3. and all the core packages
i have my html webpage file sorted like this:website test folder
my promblem is when i add link attribute and try to link my css it wont pop up on auto complete but my js files will showed here:image
is there a fix?
...ANSWER
Answered 2017-Sep-29 at 22:10Try adding the following to your config.cson
file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install autocomplete-paths
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page