Coder Social home page Coder Social logo

razetime / bqn-vscode Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 6.0 168 KB

BQN programming language vscode plugin (symbol input, syntax highlighting)

License: MIT License

JavaScript 9.76% TypeScript 32.82% Shell 5.21% Lua 52.21%
bqn syntax-highlighting vscode vscode-extension vscode-extensions vscode-language

bqn-vscode's Introduction

BQN VS Code plugin

This VS Code extension provides language support for BQN.

It is available on the Open VSX Registry and the VS Code Marketplace.

Setup

This extension has a focus on the CBQN implementation. The REPLXX=1 option must be enabled during building for best results.

Configurable Settings

You can add these settings to your settings.json file to disable some of the default behaviours of this extension.

  • bqn.executablePath - Path to the CBQN executable e.g. /home/username/CBQN/BQN.
  • bqn.saveBeforeLoadScript - Whether vscode should save the script before loading it into the CBQN REPL.
  • bqn.sendToNewReplDelay - How long vscode should wait before sending text to a repl.
  • bqn.executableSupportsReplxx - Marks whether the executable set in bqn.executablePath is built with replxx support.
  • bqn.pendingBackslashBackgroundColor - Style customization feature for backslash completion.
  • bqn.enableBackslashCompletion - true by default. If you have an extension that interferes with backslash completion (e.g. Vim keybindings), please set this to false and use a system-wide method.
  • bqn.enableHoverDocumentation - Controls whether documentation will be displayed for a symbol on mouseover.

Features

Current

  • Syntax highlighting.
  • Backslash symbol completion (\r -> โ†‘) using the standard BQN keymap, like in the online REPL.
  • Symbol completion by function name (take<tab> -> โ†‘).
  • Help popups when hovering over glyphs.
  • File, line, and selection execution in the integrated terminal (from @suhr and @mk12). This requires having a bqn executable in your PATH, or customizing the bqn.executablePath setting.

Planned

  • Block context highlighting for symbols like ๐•จ and ๐•ฃ.
  • Inline code execution similar to nvim-bqn.
  • CBQN WASM interpreter bundled with the extension.
  • Add a symbol table to the sidebar for clickable BQN symbols.

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.