Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems to get auto format code when saving working #3952

Open
blitz-research opened this issue May 29, 2022 · 0 comments
Open

Problems to get auto format code when saving working #3952

blitz-research opened this issue May 29, 2022 · 0 comments

Comments

@blitz-research
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant