dotnet/roslyn

C# Text Editor: Options to sort fields, properties and methods

Open

#71,930 创建于 2024年2月2日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)C# (4,257 fork)batch import
Area-IDEhelp wanted

仓库指标

Star
 (20,414 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

This issue has been moved from a ticket on Developer Community.


It would be nice for Visual Studio to implement a feature which allows for the IDE to sort written code (like fields, properties and methods) in a predefined order. I know that there are already paid extensions out there like ReSharper but they make the whole IDE really slow.

When looking at the products from JetBrains it is possible to describe what the code should be sorted by. For example if the fields and properties should be first sorted by name and then the access modifiers or vice versa.

Here's an image of their settings: image.png


Original Comments

Feedback Bot on 11/20/2023, 09:21 PM:

(private comment, text removed)

贡献者指南