Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        



Array Index Inlay VS Code


Visual Studio Marketplace Version
Made with reactive-vscode


Show array index inlay hints for large arrays.


Screenshot

## 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)