CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

✨ Bracket pair colorization

Open jenslys opened this issue 3 years ago • 2 comments

When dealing with deeply nested brackets in your code, it can be hard to figure out which brackets match and which do not. Bracket pair colorization fixes this by making pairs the same color to easily distinguish them.

Preview

Resources

https://code.visualstudio.com/blogs/2021/09/29/bracket-pair-colorization

jenslys avatar Mar 25 '22 13:03 jenslys

I like how Xcode handles this with temporary highlights instead of persistent colors that add visual complexity to your editor. It may be considered distracting. We can provide an option, and if not we allow for development of extensions. My vote is to follow suit with Xcode and go with the temporary bracket pair highlights.

https://user-images.githubusercontent.com/806104/160148989-de2b4180-0608-42f7-90ba-2b833766a730.mov

This would require some functionality around editor highlighting because this kind of highlighting is used in document find/replace - CodeEditApp/CodeEditTextView#31.

austincondiff avatar Mar 25 '22 15:03 austincondiff

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 30 '22 16:05 stale[bot]

keep

jenslys avatar May 30 '22 20:05 jenslys