I have found a solution:
- Go to: https://netbeans.org/kb/docs/java/editor-formatting-screencast.html
- Download the zip under: NetBeans Sample Code Library
- Import project: File>Import Project>From zip...
- Go to Tools>Options>Editor>Formatting and you have the settings back
I do not know why it worked but it worked. Hope that this will help you.