Lightweight VSCode extension for Ruby.

Overview

vscode-ruby-light

build

Lightweight VSCode extension for Ruby.

Install

Install via Visual Studio Marketplace:

For Diagnostics and Formatting features, rubocop must be available in the workspace. If Gemfile exists in the current or ancestor directory, bundle exec rubocop is used instead. For the other features, there is no need to install anything additional.

Features

Diagnostics

Displays RuboCop offenses and provides Quick Fix command for autocorrection.

demo

Formatting

Run "Format Document" command or enable "Format On Save" in the settings to autocorrect RuboCop offenses.

demo

Highlight

Hover control keywords to highlight the corresponding keywords.

demo

Selection

Run "Expand Selection" command to select appropriate ranges.

demo

Symbol

Show Outline section in the explorer panel to see symbols in the current file, or run "Go to Symbol" command to search for symbols.

This extension supports the folowiing types of symbols:

  • class
  • module
  • constant
  • instance method
  • singleton method (a.k.a. class method)
  • attribute (attr_accessor, attr_reader, and attr_writer)

demo

Others

  • Add Ruby file extension patterns
  • Add Ruby file name patterns
  • Add indentation rules

Configuration

rubyLight.diagnostics.enabled

Enable diagnostics.

  • default: true

rubyLight.documentFormatting.enabled

Enable document formatting and document range formatting.

  • default: true

rubyLight.documentHighlight.enabled

Enable document highlight.

  • default: true

rubyLight.selectionRanges.enabled

Enable selection ranges.

  • default: true

rubyLight.documentSymbol.enabled

Enable document symbol.

  • default: true

Acknowledgements

This extension is inspired by vscode-ruby.

You might also like...

JSDoc generator for JavaScript, TypeScript using AI. (VSCode extension)

JSDoc generator for JavaScript, TypeScript using AI. (VSCode extension)

JSDoc generator for JavaScript, TypeScript using AI. (VSCode extension)

Aug 18, 2022

💻 VSCode Extension for AdonisJS

💻 VSCode Extension for AdonisJS

💻 Official AdonisJS extension for VSCode Features Use all Adonis Assembler commands ( make:* ) Migrate and seed your database ( db:*, migration:* ) V

Nov 9, 2022

VSCode extension with helpful code snippets for SolidJS.

Solid Snippets VSCode extension with helpful code snippets for SolidJS. GET THE EXTENSION Snippets Trigger Content Languages JSX sinput→ Input two-way

Dec 8, 2022

Optimized dracula theme vscode extension for flutter, web, electron and golang development.

Optimized dracula theme vscode extension for flutter, web, electron and golang development.

Optimized Dracula Theme A color theme inspired by dracula color theme. This color theme is not based on dracula color theme. The color styles are simi

Jul 11, 2022

a vscode extension for http response data auto transform ts type.

a vscode extension for http response data auto transform ts type.

Api2ts 这是一个自动将 http 的响应数据转化为 ts 的类型,使用 json-to-ts 做的。 Features 框选配置项后,使用快捷键 alt+Q : 请求参数配置文件 在根目录下创建 Api2ts.config.json 文件,配置项如下: { "baseURL": "http

Jun 30, 2022

An enhanced VSCode extension for the Move programming language.

Move Analyzer Plus Provides language support for the Move programming language. Install on the VSCode Extension Marketplace: Move Analyzer Plus on the

Aug 12, 2022

Simple and intuitive API Client made into a VSCode extension 😊

Simple and intuitive API Client made into a VSCode extension 😊

REST API Client Simple and intuitive API Client made into a VSCode extension. Visual Studio Marketplace • Repository • Releases Visual Studio Code ext

Dec 23, 2022

🔎 (Draft!) VSCode extension to show the search results in a tree view

🔎 (Draft!) VSCode extension to show the search results in a tree view

vscode-search-tree 🔎 (Draft!) VSCode extension to show the search results in a tree view The work on this extension is on-pause for now since VSCode

Sep 7, 2022

🧪 A Japa extension for VSCode

🧪 A Japa extension for VSCode

🧪 Japa extension for VSCode Features Run tests without typing anything. Either with a shortcut, or via Code Lenses Support multiple workspaces Suppor

Sep 27, 2022
Comments
  • Fix README about Expand Selection default shortcut on Windows

    Fix README about Expand Selection default shortcut on Windows

    Thanks for the nice expansion! I'll send you what I notice.

    The default shortcut in Windows is Shift+Alt+Right. https://code.visualstudio.com/docs/editor/codebasics#_shrinkexpand-selection

    Ctrl + Alt + ArrowRight don't work.

    opened by masoo 1
  • Change extensionKind from ui+workspace to workspace

    Change extensionKind from ui+workspace to workspace

    If you install from Marketplace, it will probably be installed as a ui, but in that state it did not work as intended. However, when installed from a vsix file using the code command on WSL, it worked fine.

    This change may not fix all the issues, but it should fix some.

    fix 
    opened by r7kamura 1
  • Fix primary extension for Ruby from .arb to .rb

    Fix primary extension for Ruby from .arb to .rb

    Apparently, VSCode uses the first element of contributes.languages[].extensions as the default extension for that language. I was unable to locate the exact documentation for this specification.

    fix 
    opened by r7kamura 0
  • Fix: toCorrectable may throw error

    Fix: toCorrectable may throw error

    This PR fixes the error that toCorrectable may raise error.

    [Error - 18:44:15] Request textDocument/codeAction failed.
      Message: Request textDocument/codeAction failed with message: Cannot read properties of undefined (reading 'correctable')
      Code: -32603 
    
    fix 
    opened by sevenc-nanashi 5
Releases(v0.5.2)
  • v0.5.2(Aug 20, 2022)

    What's Changed

    Fixed

    • Fix bug that formatting doesn't work with RuboCop 1.30+ by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/29

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.5.1...v0.5.2

    Source code(tar.gz)
    Source code(zip)
  • v0.5.1(Aug 18, 2022)

    What's Changed

    Added

    • Support old RuboCop versions (maybe at least v1.0+ ?) by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/26

    Fixed

    • Fix primary extension for Ruby from .arb to .rb by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/27

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.5.0...v0.5.1

    Source code(tar.gz)
    Source code(zip)
  • v0.5.0(Aug 15, 2022)

    What's Changed

    Added

    • Add language configuration for better file detection and indentation by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/21
    • Add more Ruby pattern: Gemfile, .rbi, shebang by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/23
    • Support DocumentRangeFormatting by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/25

    Fixed

    • Prevent untitled files from being offended by RuboCop by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/22
    • Fix error output when no RuboCop offenses are found by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/24

    DocumentRangeFormatting demo

    DocumentRangeFormatting demo

    Indentation demo

    indentation demo

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.4.0...v0.5.0

    Source code(tar.gz)
    Source code(zip)
  • v0.4.0(Aug 14, 2022)

    What's Changed

    Changed

    • Enable Diagnostics & Formatting only if .rubocop.yml is found by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/20

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.3.0...v0.4.0

    Source code(tar.gz)
    Source code(zip)
  • v0.3.0(Aug 14, 2022)

    What's Changed

    Added

    • Add RuboCop support by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/15
    • Add configuration by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/19

    Fixed

    • Fix diagnostics error handling bug by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/18

    Others

    • Refactor params and local variable names by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/16
    • Add Acknowledgements section by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/17

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.2.3...v0.3.0

    Source code(tar.gz)
    Source code(zip)
  • v0.2.3(Aug 11, 2022)

  • v0.2.2(Aug 11, 2022)

  • v0.2.1(Aug 11, 2022)

    What's Changed

    Fixed

    • Fix DocumentSymbol selectionRange on field by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/10
    • Ignore syntax error from Ruby parser by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/13

    Others

    • Fix README about Expand Selection default shortcut on Windows by @masoo in https://github.com/r7kamura/vscode-ruby-light/pull/11
    • Automate release workflow by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/14

    New Contributors

    • @masoo made their first contribution in https://github.com/r7kamura/vscode-ruby-light/pull/11

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.2.0...v0.2.1

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Aug 8, 2022)

    What's Changed

    Added

    • Add DocumentSymbol support by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/9

    Others

    • Refactor server: simplify providers interface by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/5
    • Add eslint-plugin-unused-imports by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/6
    • Add eslint-plugin-import to sort imports by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/7
    • Add node.ts that provides utility functions for working with nodes by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/8

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.1.1...v0.2.0

    Source code(tar.gz)
    Source code(zip)
  • v0.1.1(Aug 7, 2022)

    What's Changed

    Fixed

    • Change extensionKind from ui+workspace to workspace by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/4

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/compare/v0.1.0...v0.1.1

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Aug 7, 2022)

    What's Changed

    Added

    • Support Document Highlight by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/1
    • Support Selection Ranges by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/3

    Others

    • Add lint ci by @r7kamura in https://github.com/r7kamura/vscode-ruby-light/pull/2

    New Contributors

    • @r7kamura made their first contribution in https://github.com/r7kamura/vscode-ruby-light/pull/1

    Full Changelog: https://github.com/r7kamura/vscode-ruby-light/commits/v0.1.0

    Source code(tar.gz)
    Source code(zip)
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Ruby's rstfilter extension

vscode-rstfilter README You can see the execution results by saving the file. Requirements rstfilter-lsp command in rstfilter gem is needed. $ gem ins

Koichi Sasada 17 Dec 27, 2022
A concise collection of classes for PHP, Python, JavaScript and Ruby to calculate great circle distance, bearing, and destination from geographic coordinates

GreatCircle A set of three functions, useful in geographical calculations of different sorts. Available for PHP, Python, Javascript and Ruby. Live dem

null 72 Sep 30, 2022
Quick One Liners in JavaScript, TypeScript, Python, Rust, Java, Ruby, C, C++

ONE LINERS This repository contains cool and simple one line utility functions to easily use common repetitive methods in JavaScript, TypeScript, Pyth

Divin Irakiza 3 Mar 2, 2022
VSCode extension that creates overlay for your Broadcasting Software of choice.

BSOverlay VSCode extension that creates an overlay for your Broadcasting Software of choice. Documentation Please refer to the Wiki Section. Installin

chocoearly44 4 Sep 30, 2022
A vscode extension to quickly print variable, variable type, tensor shape etc by using shortcuts

Quick Python Print This repo is inspired by "Python Quick Print". "Python Quick Print" can quickly print out variables on the console by using shortcu

weida wang 5 Oct 28, 2022
VSCode extension for managing text selection.

Selection Manager This Visual Studio Code extension will allow you to manage selected text. The aim of this extension is to increase productivity by u

Sanel Hadžini 2 Apr 12, 2022
VSCode extension for the rickroll-lang programming language (incomplete)

Rickroll-Lang VSCode Extension The Rick Roll programming language is a rickroll based, process oriented, dynamic, strong, esoteric programming languag

Siddhesh Zantye 6 Oct 10, 2022
NextJS VScode extension to visualize component tree.

Nexus A component tree extension for NextJS Report Bugs · Request Features Table of Contents About The Project Built With Installation Getting Started

OSLabs Beta 62 Nov 24, 2022