I'm not sure if you really can disable this command ("Format", part of the "Java" command groups).
But you can at least:
- remove the key binding ( ctrl+ shift+ f) to this command using the "Keys" settings.
- make sure that the project properties do not define the "format on save" action.
source
share