How to customize the code format (Ctrl-Shift-F)

if I perform (Ctrl-Shift-F) on the script mode, the code will be formatted with double line in between line of code, how to make it single line instead?