[英]VS Code : Format document is working weird on Flutter
From what I can tell, you are trying to solve the awkward line wrapping and deep nesting problem.据我所知,您正在尝试解决尴尬的换行和深度嵌套问题。 When your code gets nested as deep as it is, it hits the column word wrap limit and the limit forces forces the formatter to break items that would normally be on one line into several.
当您的代码嵌套尽可能深时,它会达到列自动换行限制,并且限制会强制格式化程序将通常在一行上的项目分解为多个。 There are a couple things you can do:
您可以做几件事:
Dart: Line Length
and edit the value to set when the file starts wrapping content. Dart: Line Length
并编辑文件开始包装内容时要设置的值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.