-
Notifications
You must be signed in to change notification settings - Fork 102
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
Request: for "Reformat file" on save, please prevent it in case it changes logic or when the code has errors #430
Comments
Turn off auto save in your IDE to prevent reformatting. This plugin is triggered on "save" if the first option is enabled. "Save" means "save" (also auto save). |
But I want it to auto-save. |
Disable first option and use short cuts (second option). That's how it works. |
But I want this turned on too. That's one of the reasons I use this plugin... |
See my first answer. If save is triggered, this plugin is doing its job. Feel free to fork it and try to modify it. |
I know it's doing its job. It does it well, but when I leave the IDE, I don't want it to do anything, because I'm not ready yet for formatting in case the code gets this way. So, my request is to prevent it from happening in such cases. |
I know what you mean but it is triggered by save even if save is triggered in background every 15 sec.. There were problems in the past when the plugin was run only in the active window, especially since files can be open in multiple windows at the same time. Therefore only remains:
|
Sorry to interrupt your chat.
Have you noticed that there is an option "No action if compile errors
(applied per file)"?!
fishermans ***@***.***> schrieb am Mi., 10. Mai 2023, 13:14:
… I know what you mean but it is triggered by save even if save is triggered
in background every 15 sec..
The author of this plugin won't do anything anymore.
There were problems in the past when the plugin was run only in the active
window, especially since files can be open in multiple windows at the same
time.
Therefore only remains:
- Choose other settings and press three buttons at Befarf (that's how
I do it).
- Modify the plugin according to your needs
- Live with the Auto Save formatting
—
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOFMR6VCCSRI6QFWGBSUD3XFN2ANANCNFSM6AAAAAAX4OPLTI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
@fishermans Are you saying this plugin won't get updated anymore? @markiewb Sadly this setting ("No action if compile errors...") doesn't work for the case I've shown:
Perhaps it's related to the fact that it's Kotlin? |
As @fishermans said, unfortunately this plugin has been abandoned and therefore is incompatible with new versions of the Jetbrains IDEs. In alternative you can use this fork: https://plugins.jetbrains.com/plugin/21538-save-actions-tool |
Describe the solution you'd like
Suppose I have these settings:
On Java and especially on Kotlin, when I leave the IDE in the background (pressing Home key, for example), it sometimes auto-formats when it shouldn't.
For example in this case of Kotlin, it's really annoying, as I haven't finished writing what's on the line with the "notificationManager." :
It becomes this way:
See video:
studio64_2023-05-10_12-21-25.zip
And sample:
My Application.zip
Please have some option to avoid it. Maybe even turn it on by default.
For what product
Intellij (Android Studio)
The text was updated successfully, but these errors were encountered: