Red extension for Visual Studio Code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
syntaxes FEAT: upgrade to 0.1.1 Oct 19, 2016
.vscodeignore FEAT: upgrade to 0.1.1 Oct 19, 2016 FEAT: v0.2.2: fix some bugs. Mar 14, 2018
tsconfig.json FEAT: upgrade to 0.1.1 Oct 19, 2016


An extension with rich support for the Red language, with features including the following and more:

  • Intellisense (autocompletion)
  • Signature Help
  • Interpret or compile Red source file
  • Snippets

Quick Start

  • Install the extension

  • If Red is aleady installed (Note: For Windows user, need to run red.exe --cli first)

    You're ready to use it.

  • Turn off the Auto Completion

    You can turn off the autocompletion in the User or Workspace Settings file (settings.json) as follows.

    "red.autocomplete": false

Compile Red Source File

For compiling Red source file, you need to configure the path to the Red toolchain in the User or Workspace Settings file (settings.json) as follows.

  • Specify the full path of the red toolchain

    "red.redPath": "/home/user1/tools/red-latest"
  • Relative to ${workspaceRoot}, where ${workspaceRoot} resolves to the current work space (project) directory.

    "red.redPath": "${workspaceRoot}/toolchain/red"

You can also configure the directory for output files of the compiler. The current work space (project) directory is used by default.

(Note: If no work space directory, the output files are in the same folder as the Red source file.)

  • Specify the full path

    "red.buildDir": "/home/user1/debug"
  • Relative to ${workspaceRoot}

    "red.buildDir": "${workspaceRoot}/build/debug"

If you are using Linux and prefer to use the Windows version of Red through Wine until GUI support is available for Linux, you can point red.redPath to a small shell script.


Key Command Command id
F6 Interpret Current Red File red.interpret
F7 Compile Current Red File red.compile
Ctrl+K Ctrl+M Show Red Command Menu red.commandMenu


The following Visual Studio Code settings are available for the Red extension. These can be set in user preferences or workspace settings.

    // Path to Red toolchain
    "red.redPath": "",

    // Directory to put compiling result of Red Source file.
    "red.buildDir": "",

    // Whether to enable or disable autocompletion.
    "red.autoComplete": true

The following commands are available for the Red extension. These can be associated with keyboard shortcuts via the keybindings.json file.

  • To configure keyboard shortcuts the way you want, go to the menu under File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on Mac)
    { "key": "f6",                    "command": "red.interpret" },
    { "key": "f7",                    "command": "red.compile" },
    { "key": "ctrl+k ctrl+m",         "command": "red.commandMenu" },
    { "key": "",                      "command": "red.interpretGUI" },
    { "key": "",                      "command": "red.compileGUI" }

Issues, Feature Requests and Contributions

  • Contributions are always welcome. Fork it, modify it and create a pull request.
    • Details on contributing can be found here
  • Any and all feedback is appreciated and welcome.

Image of General Features

Image of Red Command Menu