-
-
Notifications
You must be signed in to change notification settings - Fork 24
Allow line breaks in chained method calls #217
Copy link
Copy link
Open
Description
Hello! Many thanks for the tool, I have found it very useful. However, there is currently some behavior that breaks the philosophy of allowing you to choose whether you want to wrap lines or not.
Consider the following code, where GDScript explicitly allows line breaks:
var temp: String = (
"ABCDEF"
.replace("A", "111111111111111111111111111111111111111111111111")
.replace("B", "2")
.replace("C", "3")
)
print(temp)When formatted, the line breaks collapse, which I believe is an oversight:
var temp: String = (
"ABCDEF".replace("A", "111111111111111111111111111111111111111111111111").replace("B", "2").replace("C", "3")
)
print(temp)Current version of the tool: 0.18.2;
Platform: Linux;
Editor: Zed;
Godot version: 4.6.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels