https://github.com/wraith13/bracket-lens-vscode
Show bracket head on closing bracket for VS Code.
https://github.com/wraith13/bracket-lens-vscode
visual-studio-code vscode vscode-extension
Last synced: 16 days ago
JSON representation
Show bracket head on closing bracket for VS Code.
- Host: GitHub
- URL: https://github.com/wraith13/bracket-lens-vscode
- Owner: wraith13
- License: bsl-1.0
- Created: 2020-10-09T18:52:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T21:42:37.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T20:03:28.500Z (about 1 month ago)
- Topics: visual-studio-code, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=wraith13.bracket-lens
- Size: 3.28 MB
- Stars: 50
- Watchers: 3
- Forks: 7
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# Bracket Lens for VS Code
[  ](https://marketplace.visualstudio.com/items?itemName=wraith13.bracket-lens)
Show bracket header on closing bracket.
โ Significant performance issues have been identified in combination with VS Code v1.52.0. Set the default value of `bracketLens.mode` to `on-save` until this issue is resolved.
## Features
Displays the text in the header part of the scope after the closing brace.
### Screenshot



## Tutorial
### 0. โฌ๏ธ Install Bracket Lens
Show extension side bar within VS Code(Mac:`Command`+`Shift`+`X`, Windows and Linux: `Ctrl`+`Shift`+`X`), type `Bracket Lens` and press `Enter` and click `Install`.
### 1. ๐ Show bracket header on closing bracket
Open the source code file for a symbol bracket type language like TypeScript. Information is automatically displayed after the closing brace.
### 2. ๐ง Next step
Please see [Notes](#notes). You can change [settings](#extension-settings). And you can edit [keyboard shortcuts](#keyboard-shortcut-settings) by `keybindings.json`.
Enjoy!
## Commands
* `Bracket Lens: Toggle Mute` : Mute Bracket Lens for the text editor in focus. Execute this command again to unmute.
* `Bracket Lens: Toggle Mute All` : Mute Bracket Lens for all text editors. Execute this command again to unmute.
* `Bracket Lens: Update Brackets` : You will often need to run this command in manual mode.
* `Bracket Lens: Report Profile` : Report a profile.## Extension Settings
This extension contributes the following settings by [`settings.json`](https://code.visualstudio.com/docs/customization/userandworkspace#_creating-user-and-workspace-settings)( Mac: `Command`+`,`, Windows / Linux: `File` -> `Preferences` -> `User Settings` ):
* `bracketLens.mode`: Brackets Lens operating mode.
* `bracketLens.debug`: Debug mode.
* `bracketLens.color`: The color of the bracket header that appears after the closing bracket.
* `bracketLens.prefix`: Bracket header prefix.
* `bracketLens.unmatchBracketsPrefix`: Bracket header prefix when unmatch brackets.
* `bracketLens.line`: Include line number in bracket header prefix.
* `bracketLens.maxBracketHeaderLength`: Bracket header length than this value are displayed with the tail omitted. ( not include prefix )
* `bracketLens.minBracketScopeLines`: The bracket header is displayed only when the number of lines in the bracket scope is greater than or equal to this value. ( include bracket lines )
* `bracketLens.languageConfiguration`: Language parsing settings.## Notes
### For users with language syntax like TypeScript
Fortunately, this extension will probably work generally comfortably in the symbol bracktes type language without any special configuration.
Even for this type of language, details may require the setting of `bracketLens.languageConfiguration`. I would like to accept it as the default setting if you can tell me the setting information in the [issue](https://github.com/wraith13/bracket-lens-vscode/issues) or [pull request](https://github.com/wraith13/bracket-lens-vscode/pulls) for other users in your language.
### For users with language syntax like Ruby
I apologize for the inconvenience, but for word bracket type languages, all word brackets must be set to `bracketLens.languageConfiguration`.
I would like to accept it as the default setting if you can tell me the setting information in the [issue](https://github.com/wraith13/bracket-lens-vscode/issues) or [pull request](https://github.com/wraith13/bracket-lens-vscode/pulls) for other users in your language.
### For users with language syntax like Python
Unfortunately, this extension is not useful for indented scope type languages.
If your language is this type of language, I would like to have this extension disabled in that language by default if you let us know in an [issue](https://github.com/wraith13/bracket-lens-vscode/issues) or [pull request](https://github.com/wraith13/bracket-lens-vscode/pulls).
## Keyboard shortcut Settings
You can edit keyboard shortcuts by [`keybindings.json`](https://code.visualstudio.com/docs/customization/keybindings#_customizing-shortcuts)
( Mac: `Code` -> `Preferences` -> `Keyboard Shortcuts`, Windows / Linux: `File` -> `Preferences` -> `Keyboard Shortcuts`).Command name on `keybindings.json` is diffarent from on Command Pallete. See below table.
|on Command Pallete|on keybindings.json|default Keyboard shortcut|
|-|-|-|
|`Bracket Lens: Toggle Mute`|`bracketLens.toggleMute`|
|`Bracket Lens: Toggle Mute All`|`bracketLens.toggleMuteAll`|
|`Bracket Lens: Update Brackets`|`bracketLens.updateBrackets`|
|`Bracket Lens: Report Profile`|`bracketLens.reportProfile`|## Release Notes
see ChangLog on [marketplace](https://marketplace.visualstudio.com/items/wraith13.bracket-lens/changelog) or [github](https://github.com/wraith13/bracket-lens-vscode/blob/master/CHANGELOG.md)
## Support
[GitHub Issues](https://github.com/wraith13/bracket-lens-vscode/issues)
## License
[Boost Software License](https://github.com/wraith13/bracket-lens-vscode/blob/master/LICENSE_1_0.txt)
## Download VSIX file ( for VS Code compatible softwares )
[Releases ยท wraith13/bracket-lens-vscode](https://github.com/wraith13/bracket-lens-vscode/releases)
## Other extensions of wraith13's work
|Icon|Name|Description|
|---|---|---|
| |[Background Phi Colors](https://marketplace.visualstudio.com/items?itemName=wraith13.background-phi-colors)|This extension colors the background in various ways.|
| |[Blitz](https://marketplace.visualstudio.com/items?itemName=wraith13.blitz)|Provide a quick and comfortable way to change settings by quick pick based UI.|
| |[Zoom Bar](https://marketplace.visualstudio.com/items?itemName=wraith13.zoombar-vscode)|Zoom UI in status bar for VS Code.|See all wraith13's expansions: