unrustify:能否分解长字符串文字?

时间:2019-02-21 19:17:24

标签: uncrustify

如果我告诉我格式化当前行,请对其进行以下格式化:

**Radio button aria-checked: true or false one at a time**

$('input:radio[name=anynameofinput]').change(function() {
            if (this.value === 'value1') {
                $("#id1").attr("aria-checked","true");
                $("#id2").attr("aria-checked","false");
            }
            else if (this.value === 'value2') {;
                $("#id2").attr("aria-checked","true");
                $("#id1").attr("aria-checked","false");
            }
   });

它产生:

std::cout << "This is a long string that goes past the 80 column limit and causes problems";

这不是我想要的事情!我宁愿这样将字符串分开:

std::cout
    <<
   "This is a long string that goes past the 80 column limit and causes problems";

我已经找到设置std::cout << "This is a long string that goes just past the 80 column " "limit.........."; 来告诉它对齐断开的字符串,但是无论如何我都无法配置它决定将线分开的位置,更不用说配置它来断开字符串了

这可能吗?

如果有帮助,here is a link to my current uncrustify.cfg file.

0 个答案:

没有答案