microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.96k stars 29.18k forks source link

Manually change the order of the folders and files that are listed in VSCode File Explorer #95239

Closed hdadr closed 4 years ago

hdadr commented 4 years ago

Yes, this issue is a duplicate of this: https://github.com/microsoft/vscode/issues/91843 which was closed. I still wish this feature to be added. It would really make finding files easier, especially when there are a lot in the same folder. It could also follow the logical / user flow.

As a user i would like to sort my folder and files order in the explorer manually within it's parent folder, so i can decide how folders and files follow each other.

Currently it is sorted by alphanumeric, which does not follow the logicality of the project. It would make much easier to find files and understand project by looking on the logically sorted order.

Suggested implementation: drag + drop, keycombination + mouse scroll wheel.

image

isidorn commented 4 years ago

This is a fair feature request, however we do not have it on our immediate plan. Thus assigning to backlog and we might add this in the future. Thanks

hdadr commented 4 years ago

That's alright it's not on an immediate plan. I hope one day it comes thorugh. Thanks

abhijit-hota commented 3 years ago

+1 to this but my reasoning is a bit subjectives to taste. Now, I have a folder structure that looks like this:

/features
/utils
.eslintrc
.gitignore
.prettierrc
index.js
.env (gitignored)
README.md
package.json
config.json (gitignored)
package-lock.json

I want it to look something like this:

/features
/utils
index.js
README.md
package.json
package-lock.json
.gitignore
.eslintrc
.prettierrc
.env (gitignored)
config.json (gitignored)

In my opinion, this:

Maybe not a feature, but someone needs to make an extension! :D

OmranK commented 3 years ago

Please add manual file re-ordering feature to VSCode. This is the main reason I am considering moving away from VSCode. It is extremely annoying to have files in the wrong order and not be able to reorganize them. If I'm creating a website and I want NavBar component on top since it is the first component of the website, then its not possible. Makes working in VSCode frustrating.

ahuigo commented 2 years ago

I'm using vs code to write my markdown notes.

So I want to custom my note's sequence like this:

$ tree -a denojs 
denojs
├── .file-order
├── deno-hello-world.md
└── deno-install.md

$ cat denojs/.file-order
deno-install.md
deno-hello-world.md

I want deno-install.md to be displayed before deno-hello-world.md in vscode. (The order info is stored in .file-order)

I want to write a vs code plugin, but I could not find a api to do this:

Could vs code provide such an api to do this?

david-fong commented 1 year ago

See #119207, which is closed in favour of #27286