VSCode extension for Red
An extension with rich support for the Red language, with features including the following and more:
- hint all syntax errors
- auto completion
- goto definition
- navigate to any symbol definition
- hover to view signatures
- Interpret or compile Red source file
Install the extension
Install Red (Note: For Windows user, need to run
Note: latest daily version should be installed for
Turn off the Auto Completion
You can turn off the autocompletion in the User or Workspace Settings file (settings.json) as follows.
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.
For Windows user:
c:\work\red\red.exe will all be accepted.
Specify the full path
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.)
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.
||Interpret Current Red File
||Compile Current Red File
||Show Red Command Menu
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
// Directory to put compiling result of Red Source file.
// Whether to enable or disable autocompletion.
The following commands are available for the Red extension. These can be associated with keyboard shortcuts via the
- To configure keyboard shortcuts the way you want, go to the menu under File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on Mac)