How to implement path completion (including @ alias prompt) in vscode?

Time:2020-6-29

In fact, vscode itself has a certain path completion function.
But in our own project, we use the @ symbol to represent the SRC directory. The path completion of vscode fails here.
Here is a solution:
Download plug-ins in vscode: path IntelliSense
After installation, fill in the configuration file:

"path-intellisense.mappings": {
  "@": "${workspaceRoot}/src"
}

How to open a configuration file?
The simplest way is to download the plug-in and click in the plug-in settings:
How to implement path completion (including @ alias prompt) in vscode?
In the open Settings page, you can click Open setting.json Document:
How to implement path completion (including @ alias prompt) in vscode?

Recommended Today

Summary of computer foundation in autumn 2021 interview – Java foundation, JVM, spring framework

Series articles: Summary of computer foundation in autumn 2021 interview algorithm, data structure, design pattern, Linux Summary of computer foundation in autumn 2021 interview – Java foundation, JVM, spring framework Summary of computer foundation for 2021 autumn recruitment interview database, redis Summary of computer foundation for 2021 autumn recruitment interview – operating system Summary of […]