Create a scratch file for a selection

You can select a function that you want to move to a scratch file and press &shortcut:NewScratchFile;. The created scratch file includes this function with all the dependencies.