"Export Dataset..." option does not use code formatting options.
That's intentional (for performance reasons). You can always format it afterwards if you want.