New line at save file disable.

Answered

Hello,

I am using IntelliJ Ultimate, and I have several windows open for multiple projects.

In 1 project, when I press save all shortcut (ctrl + s) it works as expected, it doesnt alter the file.

In the other one however, when I make save all, it inserts a new line to the end of the file when there is none.

My problem is very similair to the below one, except it is not consistent between windows, and "Ensure an empty line at the end of a file on Save" is unticked:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207071445-On-save-new-line-added-to-end-of-file-How-stop-this-

Is there any other window/project-specific setting I am missing, that would disable automatic new line insert?

0
1 comment

1) do you have .editorconfig files in this project?

2) Do you have EditorConfig bundled plugin enabled? Settings from such file will override similar option from IDE Settings/Preferences (the nature of such files).

 

0

Please sign in to leave a comment.