JetBrains: Sort a file alphabetically based on first letter of each line
Asked Answered
V

2

18

Is there a way to do this in IntelliJ or PyCharm

I have huge constants file and want to be able to easily read through it alphabetically.

Vinegarette answered 5/2, 2020 at 17:46 Comment(1)
Under the Edit menu look for "Sort Lines"? What version are you using, do you have the String manipulation plugin installed?Biquarterly
V
28

Edit-> Sort Lines as my amigo above stated!

Vinegarette answered 5/2, 2020 at 17:54 Comment(0)
E
0

To quickly sort lines alphabetically, select them in the editor and choose Edit | Sort Lines from the main menu. Alternatively, you can run this action using the Find Action command ⌘⇧A (macOS) / Ctrl+Shift+A (Windows/Linux).

Ecchymosis answered 18/6, 2024 at 12:45 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.