This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Clang Format integration with KEIL

Is there an easy way to parse/use a clang-format file with KEIL?

Parents
  • Yes, you can add it as a menu item under the tools tab. Just click "Customize Tools Menu" and add:

    Command: clang-format.exe

    Arguments: -i #E

    This will create a menu item which will format the current in focus file inside keil.

    Other configurations can be made by changing the arguments.

    (this all is assuming that clang-format.exe is in your bin search path)

Reply
  • Yes, you can add it as a menu item under the tools tab. Just click "Customize Tools Menu" and add:

    Command: clang-format.exe

    Arguments: -i #E

    This will create a menu item which will format the current in focus file inside keil.

    Other configurations can be made by changing the arguments.

    (this all is assuming that clang-format.exe is in your bin search path)

Children