/liascript-preview-vscode

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

LiaScript-Preview

This will start the development server for LiaScript directly from VSCode. For more information, checkout the documentation or checkout our YouTube-Channel.

preview.gif

Features

Currently there are 5 different options, which you can either activate by [ctrl+shift+p] and then type "liascript" or you use one of the following short-cuts:

  • Start the development server in live mode: [alt+l] - on Mac [cmd+l]

    This option will start the server in the current directory and watch for changes. Every time a file is changed and saved, the preview will be reloaded automatically. If no file has been selected previously, then you will be presented with a folder overview, where you can open different files.

  • Start the development server: [alt+shift+l] - on Mac [cmd+shift+l]

    If automatically reloading might be annoying, you can use this option. It will only start the development and you will have to perform a reload of the course manually within the browser.

  • Start the development server and test your course on the project-website:

    Text to speech is not enabled at the moment, but if you want to test your course on the LiaScript project-website this option can be used.

  • Stop the development server: [alt+l+c] - on Mac [cmd+l+c]

    Once the server has been started, it will remain active until you close VScode or by using this command.

  • Navigation:

    • from Preview to file: Simply by double-clicking onto an element on the slide
    • from cursor position to Preview: [ctrl+click] ... which means, simply press control and click with the mouse onto the position in the editor, which you want see at the preview