-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficult to create folder in left panel file view if the open folder only contains folder #1043
Comments
Not as simple as it should be, but you can select a file in the root folder and then use the |
This is specifically about a root folder containing only folders, I imagine it's a pretty common use case to open a folder containing many git repositories but no files. |
(closed by accident, sorry) Thanks for the additional info:
|
Same applies for a root level file, correct? I had to first select a file in the root directory and then select the New File icon. Otherwise it will use the last selected directory as the context for the new file location. |
Note that the same issue also applies to Drag and Drop when you try to move a file/folder top level - currently impossible. I'll copy & paste my solution suggestions from the other issue:
|
UP! (just add the button "create new folder in selected folder" and "create new folder in project folder" OR right click on PROJECT folder with items "create new file", "create new folder") |
This can be remedied with plugins though. I've found this one ( |
Bump! I've been using the "right-click on scrollbar" method to create a root level folder for months now, but with my recent update to 1.28.2 this technique doesn't work anymore because the context menu doesn't come up! |
Hilarious how it is still not working. There's no root folder present in my solution. |
@rhys-vdw Cool, never noticed that! :) Yep, that works for me. |
@rhys-vdw Hm... spoke too soon. I saw the icons on the top level and I assumed they would create new folders or files on that level. However, they don't - they create folders and files on the level of whatever folder is currently selected in the hierarchy - the same thing I can achieve by using the context menu. So I take back what I said - I still don't see any way of creating a new folder or file on the top level, if the tree list is so full that I can't right-click in empty space anywhere. |
Why is it so difficult to not display the opened project as a part of explorer? Just make the root folder appear like a normal folder, so that we are able to click on it and use the context menu. 2018 is coming to an end, and things are still the way they used to be. |
My natural inclination is to click on the titlebar, since after all it's titled with the top-level folder name. B But that does not work as expected. |
Am i missing a solution for dragging / pasting a root level folder from elsewhere? There was a thread about dragging that was merged here, but this is a different story. |
How is this issue from 2015 still not fixed? |
Opened a related issue here: #75571 |
Now there are 3 alternatives how to create file/folder top level in a full explorer view:
This is not a definitie solution. We have pushed it to insiders to gather feedback from users and team members. So let us know what you think |
Looks like it's in stable 1.37? Might have found it via #2, might not have (it requires two presses of ESC), but that is an improvement thanks. Definitely would never find it via the scrollbar. Personally, I'm not sure it makes sense to have the top-level actions be context-sensitive at all, though. Why not have them add folders/files at the top level all of the time? You can use context menus to create subfolders/subfiles. |
@StephenWeatherford changes mentioned in my previous comment are not in stable 1.37. They will be in the next one. But you can try them out in the latest insiders. |
Wow, 4 years on, I'm glad something is finally being done about this. Even though all of the mentioned fixes are pretty unintuitive and out of place for a friendly tool like VS Code.
I agree with @StephenWeatherford, and I think this is the general expectation by default. Hopefully we get this in an update soon. I don't think the change in behaviour will be as big a deal as you might think. |
Open a folder that a lot of folders (enough to fill the height of the screen) and no files, it seems impossible to create a folder or file in the root folder without closing all files in the text view.
The text was updated successfully, but these errors were encountered: