KnightJun / VSCode-C-CPP-CodeJumper

Base on GNU Global, Jump to definition, reference, source file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodeJumper README

English Docs | 中文文档

CodeJumper is a VSCode plugin based on [GNU Global] (https://www.gnu.org/software/global/). It is used to find symbol definitions, references, jump files, auto-completion, etc. in C/C++ projects. If the large project is opened in VSCode, it will cause a freeze. This extension can retrieve the symbol of the entire project when one of the modules open, and the speed is very fast.

This extension is recommended for large C/C ++ projects, and small projects are recommended to use C/C++ Extension

Usage

The extension is based onGNU Global,You need to install GUN Global first, execute the gtags command in the project root directory to produce a TAG file, and then you can use VSCode to open any module of the project to retrieve the symbols of the entire project.

Note: The TAG file is not updated in real time. If the source file is changed after the TAG file generated, it may cause positioning errors. You need to re-execute the gtags command in the root directory to generate the TAG file again. Or execute the global -u command in the changed source directory to update the TAG file

Features

  • Find symbol definitions

Find symbol definitions

  • Find symbol references

Find symbol references

  • Search project files

Retrieve project files

  • Search symbol

Search symbol

  • Jump header

Jump header

The features of retrieving symbols, retrieving project files, and jumping header files can be set as right-click menu in the settings

Extended Settings

  • CodeJumper.globalPath:The default is empty, set the path of the global program, if the path where the global is set is added to the environment variable, it can be empty.
  • CodeJumper.CompletionItem:Enable by default, If it freezes during auto-completion, you can turn it off.
  • CodeJumper.SearchFileInMenu:Disabled by default, show command to retrieve files in right-click menu.
  • CodeJumper.SearchSymbolInMenu:Disabled by default, show search symbol command in right-click menu.
  • CodeJumper.JumpToHeaderFileInMenu:Disabled by default, show jump to header command in right-click menu.

Known Issues

  • Spaces in the project path may cause exceptions
  • Only tested under windows

Release Notes

0.0.1

Initial Release

About

Base on GNU Global, Jump to definition, reference, source file

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 100.0%