2019-05-12 01:45 PM
Please add new parameter STM32CubeMX / Project Manager / Code Generator / EOL Style with values:
auto (default)
LF
CRLF
A lot of people use LF EOL style on Windows. After code regeneration we have problem with git, when new sources have CRLF.
This functionality is really needed.
2019-05-13 01:16 AM
Hi,
You can configure GIT to handle EOF style to suit, both on a system level through git config, or per repository through a repo specific .gitattributes file.
There is a good description of this here : https://help.github.com/en/articles/dealing-with-line-endings
This may help if you have issues with code generation after commit / checkouts through GIT.
2019-05-13 01:34 AM
Of course we know it and we use it.
We put into GIT only LF style files.
But sometimes git and IDE have problem with regenerated file by CubeMX with Windows EOL-Style.
This setting will be useful.
2019-05-13 05:24 AM
Does any IDE or editor these days have a problem with LF? If there's no specific known IDE, maybe just generate LF files always?
-- pa