Skip to main content
psztoch
Associate II
May 12, 2019
Question

Feature Request - EOL Style in Code Generator Settings.

  • May 12, 2019
  • 3 replies
  • 1333 views

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.

This topic has been closed for replies.

3 replies

dave.W
Associate
May 13, 2019

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
psztochAuthor
Associate II
May 13, 2019

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.
Super User
May 13, 2019

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