Home>Article>Development Tools> What should I do if vscode cannot find the reference?
1. Download the Windows version of GNU Global (6.5 or above). After downloading and decompressing, configure the Win system PATH to the /bin directory of the GNU Global directory. This directory contains gtag. exe and other binary files. ;
Or download the Win32 program from the GTAGS official website, unzip it, place it in a suitable location, add the /bin folder under its directory to the system path, and restart the computer;
2 , "codegnuglobal.executable": "D:\\VSCode\\bin\\global.exe" in settings.json (customized json);
3. Open the project with vscode, ctrl shift c to open CMD, Enter gtags, and three gtag files will be generated in the project;
4. Key points: the project path cannot contain Chinese characters; there cannot be spaces; when entering gtags, you must open it according to the project file name (vscode opens the directory of the project CMD).
Recommended related articles and tutorials:vscode tutorial
The above is the detailed content of What should I do if vscode cannot find the reference?. For more information, please follow other related articles on the PHP Chinese website!