C

Code blocks sorter

JetBrains

96f32640-2640-417a-b5dc-844d93ece9ae · v—

This plugin allows you to sort your code depending on indentation, comments, brackets etc. eg. You may select whole class and sort all your method alphabetically. Pleas notice that eg. private keyword is also a part of line with your method name so it will sort your methods by accessibility.

Code Tools
Downloads
25K
25 321
Rating
4.1 ★
10 ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 10 ratings
5★ 80.0%
4★ 10.0%
1★ 10.0%

Reviews 8

★★★★★ Waleed El-Badry 2020-07-04

One of the best plugins that I found and tried today. It is very helpful in sorting functions in your class to look exactly as expected. It runs flawlessly. Steps to use it: Select all of your functions (without class) Right-click and select sort code

★★★★★ Joshua Schumacher 2019-11-29

Love it ?

★★★★★ Weijing Lin 2018-04-04

It sorts JSON code too, awesome :)

★★★★★ Johannes Lengler 2022-12-21

Support for decorators would be really nice, as is I can't really use it for more complex classes

★★★★★ David Becker 2019-11-14

This failed to move annotations with the sorted code block, leaving a giant mess of invalid annotations at the top. Bummer.

★★★★★ coldham10 2025-11-16

Completely bungles decorators in PyCharm - useless

★★★★★ Donald Duck 2023-10-05

I have "code block sorter" installed. How can I call it? In which menu is it?

★★★★★ Christopher Barber 2021-07-26

Appears to just throw all decorators away!

Similar in “Code Tools”