取消固定:如何设置最大行长

时间:2018-09-21 21:01:09

标签: code-formatting uncrustify

运行unrustify后,我不希望任何行都超过80个字符。如何在取消配置文件中设置一行的最大长度?

1 个答案:

答案 0 :(得分:1)

将这样的部分添加到您的配置文件中。它不能保证所有行都低于指定的宽度。

 package prueba;

    import org.openqa.selenium.WebDriver;

    import org.openqa.selenium.firefox.FirefoxDriver;

    public class Prueba {

        public static void main(String[] args) {
        WebDriver driver= new FirefoxDriver();
        driver.get("https://www.google.com/");
    }

}