https://github.com/zackify/vscode-sort-by-length
Sort imports by line length in VS Code!
https://github.com/zackify/vscode-sort-by-length
Last synced: about 2 months ago
JSON representation
Sort imports by line length in VS Code!
- Host: GitHub
- URL: https://github.com/zackify/vscode-sort-by-length
- Owner: zackify
- License: isc
- Created: 2017-10-12T19:22:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-12T20:39:49.000Z (over 8 years ago)
- Last Synced: 2025-02-13T21:39:32.718Z (about 1 year ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sort Imports By Length
## What?
Turns
```js
import styles from './style.scss';
import React from 'react';
import { Link } from 'react-router-dom';
```
Into
```js
import React from 'react';
import styles from './style.scss';
import { Link } from 'react-router-dom';
```
on file save!
## Thanks
Huge shout out to [peterjuras](https://github.com/peterjuras/vsc-sort-imports) for his sort imports in vs code plugin. It just doesn't do it by line length, so I used his code to make this.