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

Save actions reformat the whole file in refactoring operations even with reformat only changed code turned on #21

Closed
MANGO1234 opened this issue Nov 26, 2015 · 7 comments
Assignees
Labels

Comments

@MANGO1234
Copy link

Intellij 14/15, Windows 7. Refactor e.g. a Java class name will reformat the whole file for any file that uses that class even with Reformat only changed code turn on.

@dubreuia
Copy link
Owner

dubreuia commented Dec 3, 2015

OK I'll check it out.

@dubreuia dubreuia added the bug label Dec 3, 2015
@dubreuia dubreuia self-assigned this Dec 3, 2015
@dubreuia
Copy link
Owner

dubreuia commented Feb 8, 2016

@MANGO1234 Could you check if you have a VCS configured? Like git or svn or something.

@dploeger
Copy link

It could be, that @MANGO1234 is not referring to the reformat options but to the "Inspections quick fix"-options. I have the same problem here.

Could you please support a "fix only change lines" also for the "Inspection quick fix"-options?

@dubreuia
Copy link
Owner

I think the current behaviour is: if "only change lines" is active but VCS is not configured, then the plugin reformat the whole file (maybe it should reformat nothing).

For the inspection quick fix, I will add a "only change lines" option, I actually need it too.

@dubreuia
Copy link
Owner

Added can't activate "only change lines" if VCS not configured (#34) and I'll correct the whole file behavior in this issue

@dubreuia
Copy link
Owner

Added "only change lines" issue for inspection quick fixes: #35

@dubreuia
Copy link
Owner

will not fix

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

No branches or pull requests

3 participants