How to specify clang-format indendation for Eclipse C++ LSP editor? #504
-
Hi,
I'm somewhat new to the clang-format configuration so maybe have mixed something up. This .clang-format file is in a parent directory of the file I'm editting. I don't see any other configurable preferences for tabs in Eclipse (for the LSP editor) and don't have indentation specified anywhere else that I'm aware of. What might I be doing wrong? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
Hi Kevin,
you have to (currently) distinguish between the settings while writing code and auto formatting. The first one has to be done in Window -> Preferences -> Editors -> Text Editors:
The
.clang-format
settings come into play when the file gets formatted on file save (if it's enabled) or if you format the code manually via Source -> Format: