SmartFormat

how to smartformat syntaxedit by code instead of CTRL+K+D.
I figured out how to do this .
Selection.Smartformat() ;

Thank you