Skip to content

How to specify clang-format indendation for Eclipse C++ LSP editor? #504

Answered by ghentschke
kevin071586 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevin071586
Comment options

Answer selected by kevin071586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants