Use assorted-biscuits to make code soup and spaghetti more digestible. Annotate ALL the end brackets!!!
Watch the text by the end brackets to see Biscuits in action.
Note: The explosion you see is Power Mode
Assorted Biscuits is named as such because it handles multiple languages. This functionality is provided by Tree Sitter.
- C
- C#
- Elm
- Go
- Java
- JSON
- Kotlin
- Lua
- PHP
- Python
- Rust
- TOML
- YAML
We can add more as their grammars are made available as WebAssembly.
Until we can bring HTML, SCSS, and TS into this repo, we will continue to maintain those other extensions seperately.
In the current implementation, code-biscuits prevent seeing GitLens annotations. Issue can be tracked here: code-biscuits/html-biscuits#2
The HTML extension getting fixed will be the blueprint for fixing other extensions in the same way.
-
assorted-biscuits.annotationColor
string : Determines the color of annotation. Accepts any valid CSS color string.- default:
vscode.ThemeColor("editorLineNumber.foreground")
,
- default:
-
assorted-biscuits.annotationPrefix
string : Determines beginning of the annotation text. Emoji are allowed. Empty string is also acceptable.- default:
"// "
,
- default:
-
assorted-biscuits.annotationMinDistance
number : Determines the minimum amount of lines between start and end tag used to decide to show the annotations.- default:
0
,
- default:
-
assorted-biscuits.annotationMaxLength
number : What is the longest annotation you should see before we cut it off with a...
? A0
value shows the full string.- default:
42
,
- default:
-
assorted-biscuits.languageSettings
object: Per-language configuration to allow each language to feel unique. See "Language Specific Configuration" below.
You can configure each setting above to be specific to each language. To do so, use cmd + shift + p
to bring up the VSCode command pallette. Search for "Configure Individual Language Settings". Using the command will show a webview UI.
The settings above will take precedent over the global settings when using that specific language.
You can also just use the settings.json to modify language settings:
"assorted-biscuits.languageSettings": {
"rust": {
"annotationPrefix": "🦀 ",
"annotationMaxLength": "10",
"annotationMinDistance": "1",
"annotationColor": "#97f684"
},
"php": {
"annotationPrefix": "🐘 ",
"annotationColor": "#ff0000",
"annotationMaxLength": "4",
"annotationMinDistance": "1"
}
}
We do our best to validate your per-language configuration if you decide to edit it manually.
- fix update handling for most languages
- swallow TreeSitter errors
- filter activation events
- remove optional chaining
- scope extension to languages better using change events
- fix error: RuntimeError: abort(Error: Illegal value for
line
)
- Logo: biscuit by Bartama Graphic from the Noun Project
Copyright 2020 code-biscuits
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.