Organize imports Use the organize imports command to sort imports and remove unused ones for JavaScript and TypeScript. Support for other languages can be added by extensions. Windows/Linux: altshiftO MacOS: optionshiftO