Save file after code apply

basically the title. After applying code, it would be nice to save the file.