Exporting Mbed code to build with in Eclipse
I manage to compile a Mbed project in Eclipse. I used Kinetis Design Studio but i'm sure that you can use a normal version of Eclipse C/C++ as well. 

I´ve downloaded my mbed project as GNU (Arm Embedded) imported the project to Eclipse as an Existing Code as Makefile Project.



Configure the toolchain as Cross GCC



In the project properties, configure Make

Since I'm using Windows, I had to use the make binary from Cygwin

uncheck the Use default build command and past the path to your make binary.



Add your compiler to the PATH. I used GCC ARM Embedded



Build your project



I got two errors: 

Program "g++" not found in PATH

Program "gcc" not found in PATH

But I guess this not a problem, just a minor configuration.

Hope it Helps!