After copying code from somewhere else or making edits not handled by auto indents it would be nice to be able to activate a prettify function to indent marked or whole file.
It should then be possible to configure your indenting preferences.
Customer support service by UserEcho