Bug 14524 – Right clicking in solution explorer to add folders does not work as expected
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-04-29T20:09:00Z
Last change time
2015-11-28T09:25:47Z
Assigned to
nobody
Creator
Philip.Daniels1971
Comments
Comment #0 by Philip.Daniels1971 — 2015-04-29T20:09:35Z
I can right click in the solution explorer to create a folder, but this appears to just be a "solution folder". No actual folder is created on disk, which means that the next step - creating a source file in that folder - fails.
The only way that works seems to be to create the folder in Visual D, flip to Windows explorer and create the backing folder on disk, then flip back to Visual D to add a new file, being careful to specify the "Create in" correctly at the bottom of the Add New Item dialog box.
Basically, it should work the way it does in C#:
Right Click -> Add New Folder creates a new folder in solution explorer and on disk.
Right Click Folder -> Add New Item opens the Add New Item dialog box with the Location synced to the folder.
Comment #1 by r.sagitario — 2015-05-03T14:43:45Z
The "new folder" mechanism follows the C++ way where it's called "filter": it is merely a grouping of files, but does not need to correspond to directories on disk.
You can create create both a project folder and a directory by using Add->"New Item" and selecting "Package".
Comment #2 by Philip.Daniels1971 — 2015-05-11T20:59:15Z
OK I understand and respect your decision, but you may want to think about changing it to work the way it does for C#/VB: I would estimate that C#/VB users of Visual Studio outnumber the C++ users by at least 10-1.
Great work on VisualD BTW, it makes getting started with D easy.