Is there any software or a shortcut key which I can use to auto-indent code in Toad for Oracle 11.6?
right-click in the editor window and choose "formatting tools"/format.
How it does the formatting can be configured via View/Toad options/formatter.