Я придумал что-то вроде взлома, чтобы разобраться с сохранением метода форматирования. Это может пригодиться.
В NautilusUi -> compileSource: aText notifying: aController
добавить эту строку в начале.
self refactor formatSourceCode.
То есть это создаст автоформат при сохранении функциональности. Также я признаю, что это не правильный способ сделать это, но он работает для меня.
**compileSource: aText notifying: aController
| source category method |
self refactor formatSourceCode.
source := aText asString.
category := self selectedCategory.
method := self selectedMethod.
category ifNil: [ method ifNotNil: [ category := method protocol. ]. ].
(category isNil and: [ method isNil. ])
ifTrue: [
source first isUppercase
ifTrue: [ ^ self compileAClassFrom: source notifying: aController. ].
category := Categorizer default.
]
ifFalse: [
(category = self allLabel and: [ self selectedMethod notNil. ])
ifTrue: [ category := self selectedMethod protocol. ].
].
self compileAMethodFromCategory: category withSource: source notifying: aController.**