Use case: sort lines by keys
Example
- input:
type Data = {
buyers?: string[];
recordingDate: SomeRecordingDate;
saleDate: SaleDateType;
documentNumber: string;
documentType: string;
resale?: boolean;
};
- Select keys

-
Execute "sort lines" extension command
-
output:
type Data = {
buyers?: string[];
resale?: boolean;
saleDate: SaleDateType;
documentType: string;
recordingDate: SomeRecordingDate;
documentNumber: string;
};
This would be similar to "JSON: sort by keys", but this functionality is also useful for TS', Python' and other kind of objects, dicts, and also imports etc.
Use case: sort lines by keys
Example
Execute "sort lines" extension command
output:
This would be similar to "JSON: sort by keys", but this functionality is also useful for TS', Python' and other kind of objects, dicts, and also
imports etc.