Skip to content
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

Visual Studio Code Feature Request - Folder and files sort order #145164

Closed
rodneyazev opened this issue Mar 15, 2022 · 5 comments
Closed

Visual Studio Code Feature Request - Folder and files sort order #145164

rodneyazev opened this issue Mar 15, 2022 · 5 comments
Assignees

Comments

@rodneyazev
Copy link

rodneyazev commented Mar 15, 2022

I would appreciate it if vscode could sort these files alphabetically, it would help me keep my codes organized, just like the sort order in Windows Explorer, same as Spring Boot

Could be possible? If you dont mind. Thanks in advance.

  • Unorganized
    image

Follows an example (sorted):

image

image

image

image

@brunovieira97
Copy link

Hello @rodneyazev. The files are sorted alphabetically, actually.

The difference lies in Windows Explorer, that treats special characters such as hyphen to succeed letters in sorting, the opposite of what VS Code does. For Code, any special character will precede the letter "a", making such files appear first. You can observe in your screenshot that all files are correctly sorted, considering my explanation.

If you want to customize the sort order of files in the Explorer view, you can take a look at the following settings:

  • explorer.sortOrder
  • explorer.sortOrderLexicographicOptions

Note, however, that the character sorting that makes hyphens and other symbols precede letters can not be changed.

@rodneyazev
Copy link
Author

rodneyazev commented Mar 16, 2022

Hi @brunovieira97 , I tried use these sort methods, but none of them were able to do exactly as I would like to see to maintain my files organized making it easy to maintain as the project grows.

I think maybe they could consider the hyphen too as well as the number of character, as we can see in Windows Explorer, Spring Tools, and others IDE / Editors.

Image maintain thousands of kubernetes environments, files codes, etc. It would be very complicated to give a properly support.

This is something may they could implement in vscode. This would be a welcome improvement for us working with vscode.

@yume-chan
Copy link
Contributor

Duplicate of #27759

Please read #27759 (comment) and #27759 (comment)

@Lemmingh
Copy link
Contributor

I guess what @rodneyazev essentially needs is not alternative sorting rules but file nesting (#6328).

@rodneyazev
Copy link
Author

rodneyazev commented Mar 16, 2022

Thank you guys.

Closing this one as there is another one right here #27759

@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants