You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to komodo IDE and like it very much so far, except that I can't get it to cleanly format code before saving documents.
I created a user-script and bound it to the 'before saving' trigger, but when I save a modified document it gets formatted OK but remains in the 'modified' state. My user script is simply:
ko.commands.doCommandAsync('cmd_format')
...I also tried it with a 'return 1' and 'return 0' in case it was cancelling save but no change.
I also tried doCommandSync but this just caused the script to fail so I assume it doesn't exist?
I can bind it to a key for now, but it'd be nice to get this going.
I'm using the Linux x64 release of a Komodo IDE 12.
Bye,
Mark
The text was updated successfully, but these errors were encountered:
Hi,
I'm new to komodo IDE and like it very much so far, except that I can't get it to cleanly format code before saving documents.
I created a user-script and bound it to the 'before saving' trigger, but when I save a modified document it gets formatted OK but remains in the 'modified' state. My user script is simply:
ko.commands.doCommandAsync('cmd_format')
...I also tried it with a 'return 1' and 'return 0' in case it was cancelling save but no change.
I also tried doCommandSync but this just caused the script to fail so I assume it doesn't exist?
I can bind it to a key for now, but it'd be nice to get this going.
I'm using the Linux x64 release of a Komodo IDE 12.
Bye,
Mark
The text was updated successfully, but these errors were encountered: