When I have only a portion of the file selected, and run the formatter, it formats the whole file. Example:  Here are my settings: 
When I have only a portion of the file selected, and run the formatter, it formats the whole file.
Example:
Here are my settings: