Rearrange code
Configure arrangement rules
You can rearrange your code according to the arrangement rules set in the Code Style page of the Settings dialog.
Rearrange code
Press Ctrl+Alt+S to open settings and then select
.In the editor, select the code entries you want to rearrange and go to
in the main menu.
Automatically rearrange code on save
You can configure the IDE to rearrange code elements in modified files automatically when your changes are saved.
Press Ctrl+Alt+S to open settings and then select
.Enable the Rearrange code option.
Additionally, you can click Configure arrangement rules to specify the rules for reordering code elements for the selected language.
Last modified: 08 April 2024