Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic auto formatting doesn't preserve line continuation character

iLogic auto formatting doesn't preserve line continuation character

Pressing enter after typing a line continuation character sometimes removes the preceding space.
See the attached image for an example of this happening when using named arguments in a function call.

2 Comments
DRoam
Mentor

I agree the editor shouldn't remove the preceding space, but did you know that in this case you don't need the underscore? You can just start the new line immediately after the open parenthesis. It's called "implicit line continuation", vb.net has had it since .NET 4.0. It works as long as the context before the line break implies that there MUST be something else afterwards. Open parenthesis, assignment operators (equal sign), and commas are examples. See the Microsoft documentation for a more extensive list: Implicit line continuation.

nannerdw
Advocate

Thanks, that's a useful improvement.  It was one of the things I missed when switching from C#

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Technology Administrators


Autodesk Design & Make Report