I mean, something equivalent to simple formatting plugin that automatically indents code. Is there something in this sense?
Refer this link you will have Beautify Query option
select the query you want to format in editor and then do
Edit -> format -> Beautify Query