<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><div><p style='margin-top:0in;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729'>I’ve been trying to format code such as this <o:p></o:p></span></p><pre style='vertical-align:baseline;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;box-sizing: inherit;max-height: 600px;background-color:var(--highlight-bg);border-radius: 5px;overflow-wrap: normal;color:var(--highlight-color);orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;overflow:auto;word-spacing:0px'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>public void method(int firstArg, int secondArg)<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>// or<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>public void method(int firstArg,<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'> int secondArg)<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>// or<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>public void method(int firstArg,<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'> int secondArg)<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></code></pre><p style='margin-top:0in;background:white;vertical-align:baseline;margin-bottom:var(--s-prose-spacing);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729'>to always putting parameters on the next line<o:p></o:p></span></p><pre style='vertical-align:baseline;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;box-sizing: inherit;max-height: 600px;background-color:var(--highlight-bg);border-radius: 5px;overflow-wrap: normal;color:var(--highlight-color);orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;overflow:auto;word-spacing:0px'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>public void method(<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'> int firstArg, int secondArg)<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></code></pre><p style='margin-top:0in;background:white;vertical-align:baseline;margin-bottom:var(--s-prose-spacing);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729'>or<o:p></o:p></span></p><pre style='vertical-align:baseline;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;box-sizing: inherit;max-height: 600px;background-color:var(--highlight-bg);border-radius: 5px;overflow-wrap: normal;color:var(--highlight-color);orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;overflow:auto;word-spacing:0px'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>public void method(<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'> int firstArg,<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'> int secondArg)<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></code></pre><p style='margin-top:0in;background:white;vertical-align:baseline;margin-bottom:var(--s-prose-spacing);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729'>The closest I got is with clang format options:<o:p></o:p></span></p><pre style='vertical-align:baseline;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;box-sizing: inherit;max-height: 600px;background-color:var(--highlight-bg);border-radius: 5px;overflow-wrap: normal;color:var(--highlight-color);orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;overflow:auto;word-spacing:0px'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>AlignAfterOpenBracket: AlwaysBreak<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'>BinPackParameters: false<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:Consolas;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></code></pre><p style='margin:0in;background:white;vertical-align:baseline;font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729'>but it only puts parameters on the next line if they do not fit on the current line and shorter functions are left on a single line. <o:p></o:p></span></p><p style='margin:0in;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729'><o:p> </o:p></span></p></div><p class=MsoNormal>I would need an option such as `AlwaysBreakBeforeFunctionParameters` to replicate Kevlin Henney’s style.<o:p></o:p></p></div></body></html>