A
A
Andrey MASLOV2022-01-04 01:09:29
Visual Studio Code
Andrey MASLOV, 2022-01-04 01:09:29

Problem with Application Path Autocomplete In VScode?

Good day. Prompt install application Path Autocomplete In VScode.
The application installs fine when trying to add
"path-autocomplete.pathMappings": {
"@img": "${folder}/src/img",
"@scss": "${folder}/src/scss",
"@ js": "${folder}/src/js",
}
An error is thrown in Settings.Json.
What I don't understand or do wrong.
Please do not judge strictly if I do not ask the right question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anonimmus, 2022-02-06
@Anonimmus

According to Jack?? )))
I was helped by such an option
there with nesting, I need to play a little
{
//code with settings.
"path-autocomplete.pathMappings": {
"@img": "${folder}/src/img", // alias for /test
"@scss": "${folder}/src/scss", // the absolute root folder is now /src,
"@js": "${folder}/src/js", // the relative root folder is now /src
},
"window.zoomLevel": 0
}

D
Danil Gordeev, 2022-03-09
@dangor220

It may not be necessary anymore, but for other users.
Check the path you are currently on. (Open a terminal and see if you're not in the project folder, go with the cd command)
The extension does not understand where the root of the project folder is, so autocomplete does not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question