Advanced zyLabs provide a versatile cloud IDE where you can start servers to view web projects, open GUI applications on the desktop, select from multiple language options, and more.
There are more options available than what you see in a classic zyLab detailed below.
The IDE menu is visible along the left side of the IDE.
Click the file tree icon to open the file tree to create files and folders, re-arrange files, as well as upload, download, rename, duplicate, and delete files.
The three-dot menu at the end of each file contains some of these options.
The settings menu provides options to change the default file, write a custom run config, change the IDE language, and restart the virtual environment.
Work can be checked keystroke-by-keystroke by clicking the forward and back arrows, or scrolling through the timeline just above the timestamp.
This also opens the Files and Event History, which indicates changes made to the IDE or Files. Expand the section to see more changes.
Playback can be used to copy previously working code, or copy code that was lost if you've deleted a file or reset the workspace to the template.
Press the playback button, or Exit Playback button to exit playback.
Run will compile and run based on the default file, and the drop-down menu allows selecting other files to run.
After running code in most languages, a new button will appear in the bottom right of the IDE that opens a desktop view. Some languages open this view by default, like HTML here, where the open button has become a "Close" button.
Any code with visual output, like the movement of the turtle in a turtle project or a game inside pygame can be seen by opening the desktop.
To the right of the paste and reload icons are options to open the desktop view in a new tab, or fullscreen the IDE. Alternatively, enlarge the desktop view by adjusting the edges of the frame--squared in the picture below.
a. Use the console to see output, enter input, and enter other commands
b. Click the + to add another console tab where you can send commands for things like file management, process management, and environment variable management, especially when the first tab is busy
2. Expand/Collapse bar
a. Click and drag to expand or collapse the bottom section of the IDE
3. Reset Lab
a. This button will reset the lab to the template which removes any work, user data, and resets the instance
b. If an IDE becomes unresponsive you can refresh the page, or reset the instance from the settings menu
a. A tutorial button can be clicked at any time to see a walkthrough of the IDE
5. Sync button
a. Indicates if the most recent changes have been synced, and can be clicked to force a sync
If the IDE is disconnected from the internet, the connection indicator appears to indicate that your work is not being synced.
There are a number of Hotkeys and shortcuts that can be used inside the IDE.
F1 - Open Command Palette
Right-Click Menu includes useful hotkeys like these:
Alt + Windows + N - Run
Ctrl + F2 - Change All Occurrences
Shift+ Alt+ F - Format Document (Auto-indent)
Ctrl + K - Add Comment
Ctrl + F - Find
Ctrl + G - Go to line
Ctrl + , - Make Font Smaller
Ctrl + . - Make Font Larger
Ctrl + Shift + Enter - Insert Line Above
Ctrl + Enter - Insert Line Below
Ctrl + Shift + K - Delete Line
Ctrl + Shift + [ - Fold
Alt + F8 - Go to Next Problem (Error, Warning, Info)
Using GitHub with Advanced zyLabs
git command is useable in the Advanced zyLab IDE. It's also useable in VSC and includes a GUI there. Learn more about VSC and GitHub here.
While VSC is recommended, using
git commands from the CR2 console does allow push, pull, clone, and other actions once it's connected to your repositories.
git help in the console reveals the full list of commands.