- Upon opening a file, the editor looks for a style sheet in the same directory. If there is no such style sheet, it automatically deduces the style from the code, falling back to the local preferences.
- Then it acts as you propose.- And when saving, it automatically formats the source code in the deduced format.
