Giter VIP home page Giter VIP logo

vscode-extension's Introduction

Red

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"
    

Shortcuts

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

Configurations

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

Source

Github โ€‹

License

BSL-1.0

vscode-extension's People

Contributors

dander avatar dockimbel avatar geekyi avatar nc-x avatar qtxie avatar red-eco avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.