AvinZarlez / unity-tools

A Visual Studio Code Extension to provide some tools for Unity development
https://marketplace.visualstudio.com/items?itemName=Tobiah.unity-tools
MIT License
31 stars 8 forks source link

[Generate Organization Folders] How can I generate nested folder by default? #49

Closed ktpttd closed 5 years ago

ktpttd commented 5 years ago

image

Like this. Thank you so much!

AvinZarlez commented 5 years ago

As long as the folder exists, you should just be able to add a slash and add a folder within a subfolder.

Example setting configuration:

{
    "unity-tools.defaultOrganizationFolders": [
        "Game",
        "Game/Scenes",
        "Game/Scripts",
        "Game/Prefabs",
        "Game/Audio"
      ]
}

When testing this I did find that there is a bug. In the above example, if the "game" folder doesn't exist and isn't created first, it still says it successfully creates the folders even though it doesn't/failed.