Minr Scripts VSCode ExtensionThis Visual Studio Code extension adds syntax highlighting and code completion functionalities for Minr Script Code (MSC), as well as fast upload and download to paste.minr.org. The extension is available for download at Visual Studio Marketplace. FeaturesSyntax HighlightingHighlighting is applied to files with the
Code CompletionThe extension features a wide range of code completion functionalities. The extension will suggest the following items:
Note that when you're typing something at the beginning of the line, only command operator suggestions will work. You need to first type some operator (for example, This extension also provides hover hints: if you hover your mouse over a variable, function or field name, the extension will show its information. You can ctrl-click or press F12 on local variables to jump to their declarations, on custom namespace functions and methods to jump to their backing script files when available, and on constructors to jump to their namespace declarations.
Upload/Download using HastebinThe upload function uploads the currently opened file to paste.minr.org and copies the resulting URL to the clipboard. The copy import link function uploads the currently opened file and copies the full These features can be accessed through the Command Palette (Ctrl+Shift+P) by searching for 'MSC: Upload script', 'MSC: Copy import link', and 'MSC: Download script'. Keyboard shortcuts are also available for upload and download: Namespace Import / UpdateWhen calling 'Upload script' with a The script defines all variables, functions and classes (as well as their members) present in the namespace. It then searches the workspace folder for The import script generated must be applied as an interact script to a block. It automatically removes itself after execution. Be careful: the namespace import script automatically removes everything contained in the namespace at the start of its execution. Only execute it if you already have the full namespace definition in your namespace file, and all your functions are backed up. You can also update a namespace using the 'Update namespace' command. This only imports scripts, sets variables, and runs the namespace initialisation function, without removing and redefining the namespace. Custom Namespace FilesYou can make a custom namespace file for your namespace using the An example format is defined below. Adding documentation with comments is optional: one or multiple lines of comments directly above a variable, function, field, method, or class definition creates a comment which will be shown in code completion suggestions.
Each namespace should be backed up by a corresponding folder which contains the relevant script files.
Note that any use of variables and classes in .nms file has to include the namespace. For example, the
Release NotesSee the changelog for the full version history. |



