Resharper mangles file if nix eol is used
We have some sourcefiles that have nix eol LF, Visual Studio treats them fine, but resharper really mangles the files. From time to time it throws an exception.
Can you fix this?
Please sign in to leave a comment.
Hello Tom-Erik Duestad,
could you please clarify what actions lead to corrupting the file - does
the file get corrupt after working in the code editor, or after using ReSharper's
refactorings
(or other features) without prior opening the file in the editor?
Thanks.
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
It seems to me that the corruption only happens if Resharper does something that changes the contents, e.g refactors or reformats
Is Visual Studio asking you to translate the line endings to CR/LF style? If
so, I work around the issue by opening the source file, allowing Visual
Studio to translate the line endings, then immediately close and re-open the
file.
I sometimes find that Visual Studio doesn't prompt when the file is first
opened; in this case, I open the file, use CtrlK, CtrlD to have Visual
Studio reformat the file, close and save the changes, then open the file and
repeat the above steps after Visual Studio translates the line endings.
"Tom-Erik Duestad" <no_reply@jetbrains.com> wrote in message
news:9622878.1194355402823.JavaMail.itn@is.intellij.net...
>