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

Feature Request: Allow Creating Organizational Folders at Any Level #64

Open eddieparker opened 3 years ago

eddieparker commented 3 years ago

I often have subfolders that could benefit from having the same organizational structure. I wish I could look at the 'explorer' and right click on a folder and say "Create Unity Organizational Folders" at that level and have them be created.

Bonus points if I could customize the list of items created if that's not already possible, and even better if maybe it could auto-organize loose files in the folder into the appropriate folder?

AvinZarlez commented 3 years ago

Can you describe how, in an ideal world, this feature might work within VSCode? Since VSCode extensions can't add an explorer right click option outside of VSCode.

Is it right clicking a folder within VSCode to "Add organization folders to this folder"?

How often are you doing this? You can already modify this in the settings. Ex

{
    "unity-tools.defaultOrganizationFolders" : ["Subfolder/Your","Subfolder/New", "Subfolder/Folder","Subfolder/Names"]
}

Does that solve your issue?

eddieparker commented 3 years ago

Sorry, when I refer to 'explorer' I mean the 'explorer' in VSCode. In an ideal world I could have an entry in that right click context menu to create the folders:

image

I tend to have a bunch of micro projects in a game that I flip between, and I like each of the sub folders to be organized as such.

Good to know that the settings allow customizing the subfolders, thanks!

AvinZarlez commented 3 years ago

Makes sense.

I'll have to look into adding the correct option context menu. Then it should be relatively easy to modify the folder creation code to accept a "base" folder parameter on top of whatever is in the settings.

As always, I have very little dev time available for this VSCode extension (because of my day job and raising 2 small children), but thank you for the feature request!

Hopefully as a stop gap solution, modifying the "unity-tools.defaultOrganizationFolders" setting will improve your workflow.