MarekBruna
(Marek Bruna)
March 11, 2022, 11:24pm
1
Today I’ve learned that there is actually a possibility to use code snippets in UiPath Studio with the SHIFT+CTRL+J keyboard shortcut while in the Expression Editor window:
However it seems that there is no possibility to add your own code snippets. That’s unfortunate as the default snippets are not that useful.
Most of the IDE’s I’ve used had an option to add your own code snippets, I think UiPath developers would love to have such an option.
1 Like
Hey @MarekBruna
You can add your own snippets as below,
Create your snippet .xaml files using UiPath Studio
Save it in some folder which will mapped in next step to the Snippet panel
Click on the Add Folder in the Snippet panel
Then just choose your folder which will show all your snippets as required
Hope this helps.
Thanks
#nK
2 Likes
Xaml snippets are a different kind of snippets, in this thread I’m mentioning the code snippets which are a shortcut to input chunks of VB.Net code.
alexandru
(Alexandru Roman)
March 27, 2022, 10:03am
5
You are right, these are two different things. We are looking to address this but please let me know what snippets you have in mind? What actions would you like to add if this capability would be available?
I would like to create my own code snippets like:
Config(“”).ToString
Datetime.ParseExact(“13.12.2021”,“dd.MM.yyyy”, System.Globalization.CultureInfo.InvariantCulture)
TransactionItem.SpecificContent(“”).ToString
Config(Config(“”).ToString.Split({“, “,”,”},StringSplitOptions.None)
You get the idea.
6 Likes
Yameso
(Jakub Swiderski)
May 15, 2023, 6:47am
9
I would love to see that option as well
Here’s one I use all the time that should be in a snippet available to everyone:
Reset “In Progress” queue items to “New” state. I do this by postponing the queue items.
cprima
August 1, 2024, 8:06am
11
Hi @MarekBruna
Guess who arrived in this tread of yours?
Following up on our conversation on LinkedIn Christian Prior-Mamulyan on LinkedIn: #productivity #lowcode #uipath #studio
Indeed it seems that a “macro keyboard” / “programmable mouse” is a good companion for use with UiPath Studio
2 Likes