Skip to content

Latest commit

 

History

History
112 lines (77 loc) · 4.16 KB

README.md

File metadata and controls

112 lines (77 loc) · 4.16 KB

ev3dev browser for Visual Studio Code

This extension allows you to browse ev3dev devices from Visual Studio Code, send files to these devices and remotely run programs.

Learn more about ev3dev at http://www.ev3dev.org.

Requirements

This extension is only compatible with devices running ev3dev-stretch. It will not work with earlier versions of ev3dev.

Additional information can be found on the wiki.

Features

  • Discover devices: Any connected ev3dev device should be automatically discovered. No configuration necessary.

    Device connect button screenshot

    Device quick-pick screenshot

  • Remotely browse files: Files for each device are listed just as they are in Brickman.

    File listing screenshot

  • Download files to the device: The current VS Code project can be sent to an ev3dev device with a single click.

    Download button screenshot

  • Remotely run programs: Click any executable file to run it.

    Run quick-pick screenshot

    Right-clicking works too.

    Run context menu screenshot

    Error messages will be displayed in the output pane.

    Output pane screenshot

  • Build, Download and Run with a single click (or F5): Create a launch.json file with an "ev3devBrowser" type to use this feature.

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Download and Run",
                "type": "ev3devBrowser",
                "request": "launch",
                "program": "/home/robot/${workspaceRootFolderName}/hello",
                "preLaunchTask": "build"
            }
        ]
    }
  • Start a remote SSH session: You can start an SSH session in the terminal pane by right-clicking on a device.

    Device context menu screenshot

  • Take a screenshot: You can easily take screenshot by right-clicking a device.

    Device context menu screenshot

    Meta screenshot

Extension Settings

This extension contributes the following settings:

  • ev3devBrowser.password: If you changed the password on your ev3dev device, you will need to set the password here. If you want to manually enter the password when you connect or use public key authentication, set this to null.
  • ev3devBrowser.env: If you need to set environment variables for running remote programs, you can set them here. Each variable is defined as a key/value pair.
  • ev3devBrowser.interactiveTerminal.env: This is similar to ev3devBrowser.env but the environment variables are only applied when running a program in the interactive terminal.
  • ev3devBrowser.download.include: Use this to specify which files to included when downloading files to the remote device. Can use glob patterns.
  • ev3devBrowser.download.exclude: Use this to specify which files to exclude when downloading files to the remote device. Can use glob patterns.
  • ev3devBrowser.download.directory: By default files are downloaded to a folder with the same name as the VS Code project. Use this setting to save the project files somewhere else. Paths are relative to the /home/robot directory.
  • ev3devBrowser.additionalDevices: A list of additional devices to show in the list when connecting to a device. This should only be needed in cases where there are network problems interfering with device discover.
  • ev3devBrowser.confirmDelete: Setting to false will suppress the confirmation message when deleting a remote file or directory.
  • ev3devBrowser.connectTimeout: The connection timeout when connecting to a device. Longer times may fix "Timeout while waiting for handshake".

More details and examples on the wiki.