Is it possible to insert a code by default?

Not that I’m aware of? Though I find using the method above really quick when I’m reconfiguring and reseting my test site for different problems.