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

Add Unity specific code cleanup rules #1676

Merged
merged 9 commits into from
Jun 2, 2020
Merged

Conversation

citizenmatt
Copy link
Member

Adds a Unity specific code cleanup pattern that reorders file members in the same way as the Default profile, but does not reorder serialised fields. Event functions are grouped before other methods, and sorted so that commonly used/more important functions (such as Update) are listed first. Less commonly used event functions are sorted after, in alphabetical order.

The patterns can be edited and saved to settings, with buttons to populate default, default with regions and empty patterns. The existing file layout settings are not compatible with merging data from a plugin (and "un-merging" if the plugin is disabled/uninstalled), so the Unity patterns are edited and saved separately. A new options page has been added:: Preferences | Languages & Frameworks | Unity Engine | Additional File Layout.

@citizenmatt citizenmatt added this to the Rider 2020.2 milestone May 28, 2020
@citizenmatt citizenmatt self-assigned this May 28, 2020
@citizenmatt citizenmatt marked this pull request as ready for review June 1, 2020 08:15
@citizenmatt citizenmatt merged commit e4aec89 into net202 Jun 2, 2020
@citizenmatt citizenmatt deleted the feature/code-cleanup branch June 2, 2020 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant