Formatting in VSCode #1101
Replies: 2 comments 8 replies
-
No, this has been a frustrating problem! Since clang-format uses clang's parser it doesn't offer the ability to supply custom The workaround that's currently being considered is manually replacing PRIVATE before running clang-format, then swapping it back after formatting. Ex: Long term F' may shift away from using |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone, Resurrecting an old thread here: Does the fprime team have any suggestions for how to approach formatting for an fprime project? Do the fprime developers use a Is the approach described above used by the team to address the |
Beta Was this translation helpful? Give feedback.
-
For anyone that develops F' projects using VSCode, have you managed to get around the
PRIVATE
#define formatting problem when using F'?VSCode doesn't understand that
PRIVATE
used in the header files refers to theprivate
keyword which then breaks the indentation and makes the file look very messy. Obviously, this is calculated at compile-time, so I don't know if it would be possible to fix, but I'd be interested in hearing if anyone has any suggestions.Beta Was this translation helpful? Give feedback.
All reactions