I use cmake to generate my Eclipes CDT projects. I sometimes add files to my project. After I add a file, but before I "finish" compiling, the new files are invisible. I cannot open them with CTRL-SHIFT-R. I cannot double-click them in the error console to jump to a line number. I just "finish" a compile (even if it fails).
Is there a keyboard (or mouse if necessary) way I can ask Eclipse to refresh the files without compiling? (I'm looking for something faster than running the compiler/linker/cmake/etc).
Marc-Andre Laperle wrote on Wed, 23 October 2013 23:46
Are you clicking on the project first in Project Explorer? You have to select a folder containing your file in the Project Explorer first then F5 will refresh what you selected recursively.
No. I did not use the Project Explorer to select a folder containing my file before pressing F5. I do not even keep open a "Project Explorer" View. I will open a "Project Explorer" View and try your F5 method again.
Unfortunately for me, I dislike using the mouse while writing code. If use of the mouse and project explorer is required for a quick file refresh, I'll stick with the slow 10-step method I outlined earlier.