Try using the “Invoke code activity” for big chunks of code.
If you have multiple assigns or just a big line of code it can be much easier to follow and debug.
Even if we had multi-line support in the Assign activity, you still would need to open it to see all your code. Invoke Code has you covered, as already suggested:
@alin.ferenczi@redlynx82 I get your point. But what is wrong with multi line support on the rest of the items (not only assign). All activities that support a expression editor should have multi line support imho. And im not talking about huge amounts of code, just a simple assign like above would be more readable without having to use invoke code activities. For non-programmers the readability of stringing together a few strings and new lines and other basic stuff would make it more fun.
The fact that the expression editor is a multi line window instead of just a single line would suggest it can use those lines and not only to mock-up your code and deleting all the enters afterwards
Hey, UiPath (VB.Net expression editor) do support multi-line code. This can be achieved using a line-continuation character (not aware of the technical name, though!).
Use the line-continuation character, which is an underscore ( _ ), at the point at which you want the line to break. The underscore must be immediately preceded by a space and immediately followed by a line terminator (carriage return).
Hi @Dominic
Yes that does help indeed. @ClaytonM has pointed this out to me as well.
But is it to weird to ask for just a multi-line editor? in above case it would just mean to replace an “Enter” within the code with " _ " (or just ignore new lines)
Maybe my understanding was incorrect about the tooling within Uipath. I assumed it was custom build interface to support a standard logic framework. But if the “VB.Net expression editor” is indeed a “snippet” used from a different framework i understand its hard to modify.
The behavior seems to be from basic vb.net expression editor (even in other platforms). Not sure if this idea has to be implemented by UiPath dedicatedly.
I am also just looking for an option “Word Wrap” for the Editor. Similar to the setting in Windows’ Notepad (Format → Word Wrap). Something which you can toggle on or off depending on how you need to read the text at that moment.