austin----- / code-gnu-global

Provide Intellisense for C/C++ with the help of the GNU Global tool in Visual Studio Code
152 stars 67 forks source link

Установка c++ intellesense autsin gnu global for vs code #70

Open Focus1221 opened 3 years ago

Focus1221 commented 3 years ago

Всем привет. Не могу я установить, точнее привязать gnu global . Я скачал msys2 , скачал пакет global, затем как там написано в инструкции, добавил в settings json "codegnuglobal.executable " путь к global l.exe. А где там gtags, gtags, gpath я не понял. Подскажите как сделать 2 шаг - установка gtags. И нужно было ли скачивать msys2?

Milkve commented 3 years ago

MSYS2 is just a simulation of Linux, which means that you can run gtags in Windows as Linux-alike ways. Note that you can run gtags, and you must install it like

sudo pacman -Syu
sudo pacman -S global

or use wget to download source code and compile and install gtags like

wget https://ftp.gnu.org/pub/gnu/global/global-6.6.5.tar.gz

then compile it with steps listed in readme.(you can also turn to Yandex and Google for help).

If you installed "global" on MSYS2, you can try command gtags in MSYS2 to test it. After that follow readme in this repository and you can use C++ Intellisense in VS Code