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

[Feature Request] Temporarily turn off save actions #1111

Open
baseballlover723 opened this issue Aug 4, 2024 · 0 comments
Open

[Feature Request] Temporarily turn off save actions #1111

baseballlover723 opened this issue Aug 4, 2024 · 0 comments

Comments

@baseballlover723
Copy link

What happened?

Quite often I find myself commenting out chunks of of code while developing, and when I run my tests or leave focus, intellij automatically saves the file, and then that triggers the formatter and optimizing the imports. It's rather inconvenient for me sometimes because when I uncomment the chunk of code, the imports that got automatically optimized out, don't come back, and so I have to individually import them all again.

I'm also not always a fan of my code constantly going from single line to multi line in the middle of developing something, when the line length is around the single line length amount (thus small changes can lead to the thing I just edited being moved to a different spot).

Manually turning off the save actions doesn't work as when the formatter is run, it automatically reenables those options.

What did you want to happen?

I'd love to be able to configure 2 settings (one for the formatting, and one for the import optimization) in the intellij plugin to disable the save actions autoconfiguration so that it doesn't prematurely optimize my source code. The biggest benefit to me would be that I don't have to worry about things being moved behind my back when I might not care about the appearance of the code at the moment (for instance, when I'm trying out multiple ideas and don't want to fully get rid of the others while I explore one).

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