Import GitHub remote project in Eclipse CDT, action is
Import->git/projects from Git->clone URI
The imported project can switch branch, but the declaration of the function cannot be opened, and virtually all of Eclipse's shortcut keys are useless.
I looked at the preference of the import project, and found that even the C + + build option did not, that the problem might be that the imported project had no language (c + +, C, Java, etc.), so that eclipse was treated as a general project without language attributes. Shortcut keys This kind of thing that relies on programming language will not be able to use it naturally.
The solution is:
Still importing remote GitHub project to the local, under Mac OS is placed under ~/git/remoteproject, Linux should be the same. Then import the C/C + + Existing code as Makefile Project, Browser, and select Remoteproject, that is to say we manually create a + + project and no longer rely on egit to automatically generate
The newly created project needs to take the project name by itself (the name does not need to be taken directly from GitHub), except that all features are consistent with what we expect, and can switch to another branch, function declaration, call Hierarchy can be used.
It is worth noting that some projects can be directly used after the lead, and some need to follow the above process to go, do not know why
The Chinese did not find the relevant information, English words found this
Eclipse M2e:can ' t open declarations after importing MAVEN projects
The description of the problem was almost the same as mine, but no one answered: (
The problem with the up master is about the same as mine, and Vonc's classmates gave me the inspiration to solve the problem (his last word)
You could also use the "Import existing project" option, if your GitHub repo had versioned the .project
.classpath
and file, but th At May is not being the case here.
Importing a GitHub project into Eclipse
Eclipse CDT resolves a bug where a github-imported project cannot open a claim (cannot open declaration)