79613501

Date: 2025-05-09 04:59:20
Score: 1
Natty:
Report link

Do this to sort your selection in the Visual Studio code editor

Tools->Option->Environment->Keyboard

enter image description here


I reassigned the shortcut for Edit.SortLines from (Shift-Alt-S) to (Ctrl-S Ctrl-S)

(Shift-Alt-S) activates the File menu which can be frustrating and in my case the cause for reassignment

Anything in the selection will be sorted. If you keep invoking the shortcut on the same selection it will sort backwards and forwards until your heart desires.

That's any selection not just Enumerators.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Dragan Radovac