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: i) TotalCross VS Code Plugin and ii) TotalCross CLI Tool. As we you know each developer has his/her favorite IDE we provide, besides the plugin for VS Code, a CLI Tool that can be used with any Java IDE i.e., IntelIJ, Eclipse, Netbeans and VS Code as well. Thus chose on one of the options bellow to get your development environment set up.

Installing TotalCross CLI Tool

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

npm install -g totalcross-cli

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

You have TotalCross CLI tool installed and ready to use.

Installing VS Code

Mac OS X

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โ€‹


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

Open VS Code and go to Extensions.

Type in the TotalCross search bar.

Click install.