Hallo, Gibt es eine Möglichkeit in Eclipse, Code automatisch am = Zeichen auszurichten, dass man also sowas erhält:
1 | int name = 1; |
2 | int zwName = 2; |
3 | int langerName = 3; |
und nicht sowas:
1 | int name = 1; |
2 | int zwName = 2; |
3 | int langerName = 3; |
|
Forum: Compiler & IDEs Eclipse: EinrückungHallo, Gibt es eine Möglichkeit in Eclipse, Code automatisch am = Zeichen auszurichten, dass man also sowas erhält:
und nicht sowas:
Ich glaub der Eclipse Formatter ist nicht smart genug dafür... Von dem würd ich aber sowieso abraten. Ich benutz das Plugin "CppStyle", dass im Prinzip nichts anderes tut als Clang-Format aufzurufen. Siehe hier: https://clang.llvm.org/docs/ClangFormatStyleOptions.html Clang-Format bietet eine Option namens "AlignConsecutiveAssignments", die exakt das tut was du suchst. Näheres, etwa wie man ein .clang-format File erstellt usw. findet man in der Doku. Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.
|
|