2. Setting up Environment

TotalCross CLI and VS Code Plugin

In order to turn your development environment very much fast and easy, we offer two tools for helping setting up projects since creation to deploy to devices. These tools are:

  1. TotalCross VS Code Plugin

  2. TotalCross CLI Tool

Thus chose on one of the options bellow to get your development environment set up.

VS Code Plugin

Installing VS Code

Linux
Windows
Mac OS X
Linux

The easiest way to install Visual Studio Code for Debian / Ubuntu based distributions by opening the .deb package via Software Center GUI. If your distribution is debian based download your VS Code .deb Package in https://code.visualstudio.com/Download and install it. If you prefer to install using your terminal, type the command: sudo apt-get install code

For more information access: https://code.visualstudio.com/docs/setup/linuxโ€‹

Windows

Download the Visual Studio Code installer from the site: https://code.visualstudio.com/Download and run the installer. Or download a Zip archive, extract it and run Code from there.

For more information access: https://code.visualstudio.com/docs/setup/windowsโ€‹

Mac OS X

Download Visual Studio Code installer from the site: https://code.visualstudio.com/Download and double-click on the downloaded archive to expand the contents. In the next step drag Visual Studio Code.app to the Applications folder, making it available in the Launchpad and add VS Code to your Dock by right-clicking on the icon and choosing Options Keep in Doc.

You can also use brew to install it by typing the following command:

brew cask install visual-studio-code

For more information access: https://code.visualstudio.com/docs/setup/macโ€‹

Installing Plugin

Step 1: open VS Code and go to Extensions.

Step 2: type TotalCross in the search bar and click to install.

Done, the plugin is successfully installed! To know how to use click here.

CLI Tool

This is the alpha version of the CLI. It is still in the testing phase and will be launched on 02/24/2020.

Installing our CLI tool is pretty simple, you just have to get Node.js installed in your machine an then.

Step 1: type in your terminal:

You may need to run with privileges

Step 2: verify your installation:

And Voilรก! ๐ŸŽ‰โ€‹๐Ÿฅ‚โ€‹๐Ÿพ

You have TotalCross CLI tool installed and ready to use. To know how to use click here.