Hi,
I’m a new Komodo IDE 12 user and I mostly like it so far, although I’ve encountered a few issues that could well be my fault so I’d thought I try asking here:
- I couldn’t get ‘format code before saving’ working properly. I wrote a userscript to call ‘cmd_format’ (as found in a blog post) before saving, and it sort of works, the document does get formatted but it remains ‘modified’ and doesn’t end up getting saved. The userscript just does:
ko.commands.doCommandAsync(‘cmd_format’)
I tried ‘Sync’ instead of ‘Async’, various return values etc. but nothing worked. It does work when bound to a key so I can use that but would prefer on save.
-
The js beautifier formatter wants to insert a space into all my arrow operator arrows, so ‘=>’ becomes ‘= >’ which of course breaks at runtime. There doesn’t seem to be any relevant option for this in the IDE, is there another beautifier I can install? How?
-
Is there a list of userscript ‘ko.commands’ somewhere? I could fix my arrow operator problem if I could do a search replace after the cmd_format, but I don’t know how. I can’t find one at https://docs.activestate.com/komodo/12/.
Bye!
Mark