Preferences/Editor/Code Style/HTML -> Tabs and Indent (tab) -> Tab size, Indent, Continuation Indent to 2
Preferences/Editor/Code Style/HTML -> Other (tab) -> Spaces -> In Empty Tag (check this option)
Preferences/Editor/Code Style/HTML -> Other (tab) -> Do not indent children of -> Add script and style