add save support for ide

add save support for ide