Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antfu/vscode-array-index-inlay
Show array index inlay hints for large arrays for VS Code
https://github.com/antfu/vscode-array-index-inlay
vscode vscode-extension
Last synced: 23 days ago
JSON representation
Show array index inlay hints for large arrays for VS Code
- Host: GitHub
- URL: https://github.com/antfu/vscode-array-index-inlay
- Owner: antfu
- License: mit
- Created: 2024-08-15T23:10:09.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T19:55:01.000Z (3 months ago)
- Last Synced: 2024-09-29T08:01:27.135Z (about 1 month ago)
- Topics: vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 146 KB
- Stars: 185
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Array Index Inlay VS Code
Show array index inlay hints for large arrays.
## Configs
| Key | Description | Type | Default |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------- |
| `arrayIndexInlay.enabled` | Enable inlay hints | `boolean` | `true` |
| `arrayIndexInlay.minLength` | Minimum length of array to show inlay hints | `number` | `15` |
| `arrayIndexInlay.minLines` | Minimum lines of array to show inlay hints | `number` | `30` |
| `arrayIndexInlay.startIndex` | Start index of the array, default to 0 | `number` | `0` |
| `arrayIndexInlay.allowSpread` | Show inlay hints even there are spread operators in the array | `boolean` | `false` |
| `arrayIndexInlay.colorizeDepth` | Colorize the inlay hints based on the depth of the array. Colors can be customized with `arrayIndexInlay.depthColors` | `boolean` | `false` |
| `arrayIndexInlay.depthColors` | Custom colors for each level of the array. Supports CSS color formats. Select an equal number of colors to your bracket colors to get the best results. | `array` | See package.json |## Supported Languages
- JavaScript
- TypeScript
- JSX
- TSX
- JSON / JSONC / JSON5
- Vue
- Svelte
- Astro## Sponsors
## License
[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu)