Click on the test class to see the dropdown which would automatically format the class without changing any preferences.