mihai-vlc / path-autocomplete

Path autocomplete for visual studio code.

Home Page:https://marketplace.visualstudio.com/items?itemName=ionutvmi.path-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to autocomplete from empty string?

philipshen opened this issue · comments

I use absolute imports in my project––for example to import /src/utils/example.js I will write import example from 'utils/example'. However I can't seem to get autocomplete working from an empty string. This code from the examples works the way it should:

"path-autocomplete.pathMappings": {
        "/": "${folder}/src"
 },

However using an empty string instead of a slash doesn't. Is there any way to get this working?

I don't think we would add this feature. In your use case, you would better just type 'u' to get suggestion from VSCode builtin support.

image