festgelegt
Code: Select all
{
BasedOnStyle: Google,
SortIncludes: false,
IndentWidth: 4,
MaxEmptyLinesToKeep: 3,
ColumnLimit: 0,
KeepEmptyLinesAtTheStartOfBlocks: true,
AlignAfterOpenBracket: BlockIndent
}
< /code>
Wenn ich jedoch ein Array an eine Funktion übergeben kannMyFunction({
1,
2,
3,
4
});
< /code>
Es formatiert alle Elemente in eine einzelne Zeile als solche: < /p>
MyFunction({1, 2, 3, 4});