Note: This is a fork of the original VSLilyPond extension.
- Fixes reload on create
- This is fixed in VSLilyPond-PDF-preview (also forked)
- Fixes formatting on save issue by removing the dependency on the formatter for now and using a different setup (see Setup formatting).
- I've also forked the formatter so maybe I'll fix it there at some point, but this works for now.
- Cleans up temporary pdf and .ly~ files when intellisense runs.
Since the forks are not yet published on the VSCode marketplace, for now you can install them manually:
Note: you may have to uninstall the original extensions first.
Clone the repos:
git clone git@github.com:mwojick/VSLilyPond.git
git clone git@github.com:mwojick/VSLilyPond-PDF-preview.gitInstall each extension in their respective directories (must have npm and vsce installed):
npm install
vsce package
code --install-extension *.vsixNote: change
codetocursoror some other vscode fork if you are using that instead.
Install run on save
Install python-ly:
pip install python-lyAdd this to your settings.json:
"[lilypond]": {
"editor.formatOnSave": false
},
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.ly$",
"cmd": "ly reformat -i ${file}"
}
]
},Provides syntax and error highlighting, IntelliSense and AutoComplete, compilation on save, MIDI (input and playback) support for LilyPond in VSCode. Works with any VSCode supported PDF previewer for PDF preview.
See docs/INSTALL.md for a setup guide.
Supports chord mode, relative mode and sharp/flat accidentals. See DEMOS.md for advanced features in action, and SETTINGS.md on how to toggle them.
See here for more information (including a usage guide).
See docs/INSTALL.md for a setup guide.
- VSCode 1.46.0 minimum
- LilyPond (Tested on 2.22.1)
- (Optional) MIDI Devices for MIDI Input and Playback
- (Optional for Windows, Linux and macOS users) python-ly: Required for formatting (more information here)
- Commands: See docs/COMMANDS.md
- Settings: See docs/SETTINGS.md
- Status Bar interface: See docs/STATUSBAR.md
Please submit issues in the GitHub repository.
See the FAQ at docs/FAQ.md.
- File bugs and/or feature requests in the GitHub repository
- Pull requests are welcome in the GitHub repository
- Buy me a Coffee ☕️ via PayPal
- VSCode
npm
-
Clone repository
git clone https://github.com/lhl2617/VSLilyPond
-
Install
npmdependenciesnpm i
-
Hit
F5to run an Extension Development Host.See here for a detailed extension development guide.
- On Windows, download VMPK and loopMIDI. These will allow you to test with a virtual MIDI keyboard.
Releasing is done automatically via GitHub Actions. Bump the version in package.json and update CHANGELOG.md before merging into the default branch.
Base syntax highlighting depends on the LilyPond Syntax extension by Alexis Jeandeau, under the Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) license (http://creativecommons.org/licenses/by-sa/3.0/). See that repository for additional acknowledgements.
IntelliSense and AutoComplete depends on the LilyPond AutoComplete (Commands & Keywords) extension, under the MIT license.
Formatting depends on the LilyPond Formatter extension, under the MIT license.
Point and Click depends on the LilyPond PDF Preview extension, under the MIT license.
License: Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) license, http://creativecommons.org/licenses/by-sa/3.0/.





