Minsc VSCode Extension
VSCode Extension for Bitcoin's Minsc Programming language

Minsc is a high-level scripting language for expressing Bitcoin Script spending conditions. It is based on the Miniscript Policy language, with additional features and syntactic sugar sprinkled on top, including variables, functions, infix notation, and more.
Features
- [x] Syntax highlighting
- [x] Comment toggling
- [x] Auto closing
- [x] Auto complete
- [x] Code Snippets
- [x] Hover Messages
- [x] Icon support for
.minsc files
- [ ] Compile to Script Opcodes
- [ ] Analyze Minsc code
- [ ] Linting, Warning & Error Messages
Installation
You can search "Minsc" in the extensions panel on VSCode or VSCodium.
However, simply using the .minsc file extension in VSCode or VSCodium should prompt installation of the extensions.
For .vsix build files in case you need a specific version check out the .vsix release file list.
Usage
Available features list.
- Syntax highlighting
- Comment toggling
- Autocomplete
- Code Snippets
- Hover Messages
Syntax highlighting
Name your files with a .minsc file extension and then VSCode (or VSCodium) will automatically recognize them. Syntax highlighting and the Minsc logo will be applied automatically.
Use the keyboard combination's below to convert an entire line into a comment or code;
| OS |
Comment Shortcut |
| MacOS |
⌘ + / |
| Windows, Linux |
Ctrl + / |
Autocomplete
Simply type the first character of any keyword and a list of relevant keywords will drop down at the bottom.
Select the one your looking for.
Code Snippets
Start by typing ms:, and you will see a list of code snippets for commonly used Bitcoin Scripts, like hash locks, time locks and multi-sig schemes.
Hover Messages
To learn more a Minsc keyword, hover your cursor over the keyword and a description of what it is about will be displayed.