Inserting blank lines in SQL files before /
Answered
Intellij keeps putting blank lines in my SQL file before the '/' sign each time I save it:
COMMIT;
Here the blank line are inserted all the time.
/
Why keeps it doing that?
Please sign in to leave a comment.
Check New line before/after/around options in File | Settings | Editor | Code Style | SQL settings.
If issue remains please, specify SQL dialect are you using, post sample file content with which you can reproduce the issue here and content of idea.log file after IDE restart. Thanks.
Already checked there :-) But what exact option do you mean? There are lot of them to select there. And I do not see anything concerned with a '/'...
I can not reproduce. Does it help if disable formatting in File | Settings | Editor | Code Style | SQL settings?
Please post idea.log after IDE restart and if possible, upload somewhere your code style (Manage... -> Export action). Thanks.
Hello. Disabling code style formatting helps to get rid of the problem.
SQL-Style https://drive.google.com/open?id=0B6i-92XVUdvCS3dlY1oyV0RRbUE However no special information here
IDEA.log https://drive.google.com/open?id=0B6i-92XVUdvCYUt2X0NTWnJlU0k
Test file contents:
Does it reformat to the same result if you invoke Code | Reformat Code action?
You have Save Actions (0.12) 3rd plugin installed. Please try with it disabled.
> Does it reformat to the same result if you invoke Code | Reformat Code action?
Yes, it does.
> You have Save Actions (0.12) 3rd plugin installed. Please try with it disabled.
OK, if I disable the save action feature, then nothing happens. But that's quite obvious, isn't that? :-)