How to get complete code from arduino ide

You can also browse the source on github. It doesnt have the "advanced ide" features like "go to definition", but it does have search.