Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unional/vscode-sort-package-json
Sort package.json VSCode extension
https://github.com/unional/vscode-sort-package-json
package-json package-json-updater vscode-extension
Last synced: 2 months ago
JSON representation
Sort package.json VSCode extension
- Host: GitHub
- URL: https://github.com/unional/vscode-sort-package-json
- Owner: unional
- License: mit
- Created: 2018-10-09T20:13:51.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T10:15:46.000Z (3 months ago)
- Last Synced: 2024-10-18T06:23:38.196Z (3 months ago)
- Topics: package-json, package-json-updater, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=unional.vscode-sort-package-json
- Size: 682 KB
- Stars: 27
- Watchers: 3
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-sort-package-json
A [Visual Studio Code extension][marketplace] to sort package.json with [sort-package-json].
## Features
Sort your package.json sensibly.
### Sort Manually
1. Open a `package.json` file
2. Open the Command Palette with ctrl-shift-P (cmd-shift-P for macOS)
3. Select `Sort package.json`### Sort on Save
To sort all `package.json` files automatically on save, configure your user settings:
1. Open the Command Palette with ctrl-shift-P (cmd-shift-P for macOS)
2. Select `Preferences: Open User Settings (JSON)`
3. Add `"source.sortPackageJson"` to `"editor.codeActionsOnSave"` as shown below```json5
"editor.codeActionsOnSave": [
// Sort package.json keys with
// https://marketplace.visualstudio.com/items?itemName=unional.vscode-sort-package-json
"source.sortPackageJson"
],
```[marketplace]: https://marketplace.visualstudio.com/items?itemName=unional.vscode-sort-package-json
[sort-package-json]: https://github.com/keithamus/sort-package-json