How to Import a CMake project into Eclipse CDT? For example, the current CMake project source directory is ./src. mkdir ./cdt && cd ./cdt && cmake -G “Eclipse CDT4 – Unix Makefiles” ../src cmake will generate a Eclipse project in ./cdt and you can open it in Eclipse. Answered by Eric Z Ma.
Formatting code shortcuts in Eclipse. Shortcut: Ctrl + Shift + F No need to select the code. Answered by Eric Z Ma.