Edit Default Snippets Folder

Hello!
I’m currently working on creating a “snippets repository” for my team. I have already found a way to import snippets from a cloud repository to UiPath Studio, but I was wondering if it is possible to alter the default folder from where UiPath Studio gets its snippets.
As an example: the default folder for your snippets is located at user/AppData/Local/Programs/UiPath/Studio/Snippets, so whenever you create a new project, whatever snippets are stored in this file location will show up for use on studio. I would like to change this default location for user/Downloads (just as an example) so that when I create a new project the snippets tab will show me all the xaml files on my Downloads folder.
Thanks for the help in advance!

Hello @brunokkawano!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

I was just wondering the same. I think it is not configurable.

When I am looking for such settings what I typically do is grep in these 3 locations:

  • C:\Program Files\UiPath\Studio
  • C:\Users\cg371p\AppData\Local\UiPath
  • C:\Users\cg371p\AppData\Roaming\UiPath

But when I used bash (comes with Windows Git) I found no json files:
grep -R nippet *

That makes me believe the locations are hardcoded.

There is also C:\Program Files\UiPath\Studio\Snippets , just to be complete.

we could try using symbolic links and at least integrate other locations into the fixed snippets folders

1 Like

Ah, now I understand what @brunokkawano wrote:
His program installation is per-user, that’s why there is a folder part *Program * in there.

I cannot test shortcuts because right now I have no access to a Studio where I have permissions to alter the .\Snippets folder

not sure if you refer to symbolic links when mentioning shortcuts

when ever you can test

checkout for the /J Option with special attention

1 Like

I need to correct my previous post, I was looking for the wrong needle in the 3 location haystacks.

Seems that

  • UiPath Studio “Snippet” Panel “custom folders”
  • added via the “Add folder” icon
  • are then stored in %USERPROFILE%\AppData\Roaming\UiPath\UiStudio.v2.settings
  • in the element UserLibraryFolders
      <UserLibraryFolders xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d2p1:string>C:\Users\ACME\Documents\UiPath\ACME4711</d2p1:string>
        <d2p1:string>C:\Users\ACME\Documents\UiPath\ACME0815</d2p1:string>
      </UserLibraryFolders>

@brunokkawano
You might want to look into a way to script adding an entry to that .settings file.
Nowadays with ChatGPT that should not take too long

Or have each developer manually edit that file. It is plain text, personally I never hesitate to edit plain text files.

1 Like

As I came to this thread with the same usecase in mind (to share snippets between VDEs, and potentially developers):
I will now put my snippets xaml files into a Git repo, and then checkout on each Studio VDE, in a location that will be accessible for any user, like C:\Users\Public\UiPath\SharedSnippets\git.ACME.net\mySnippetsRepo_VBasic_Legacy or such.
(Go inspired folder path convention, to include the remote repo location.)

Then add to %USERPROFILE%\AppData\Roaming\UiPath\UiStudio.v2.settings

      <UserLibraryFolders xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d2p1:string>C:\Users\Public\UiPath\SharedSnippets</d2p1:string>
      </UserLibraryFolders>

When doing so via the UiPath Sutio Snippets panel: If multiple Studio windows are open this must be done in the last open window before closing them all.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.