Partial formatting of code

Is there is a selection made, only the selection will be formatted