cancel
Showing results for 
Search instead for 
Did you mean: 

Feature Request - EOL Style in Code Generator Settings.

psztoch
Associate II

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.

3 REPLIES 3
dave.W
Associate II

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.

psztoch
Associate II

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.

Pavel A.
Evangelist III

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