VS Code extension
Write AlgoML with colours, live error checking and one-click generation.
What it does
- Colours the keywords, types, strings and numbers of
.amlfiles. - Checks your code as you type and underlines errors, with the message in the Problems panel.
- Generates the C, Java or Python file next to your
.amlfile.
Install
See Installation. Java 17 or later is required.
Generate code
Open an .aml file and run the AlgoML generate command from the Command Palette (Ctrl+Shift+P, then type AlgoML). The generated file appears in the same folder. The language used is the one on the language line of your file.
Troubleshooting
| Problem | What to do |
|---|---|
| No colours, no error checking | Make sure the file name ends with .aml. |
| "Java not found" | Install Java 17 or later, then restart VS Code. Check with java -version. |
| The first generation is slow | Java needs a few seconds to start. The next ones are faster. |
| The extension seems stuck | Run Developer: Reload Window from the Command Palette. |