VSCode-Anywhere
  • Introduction
  • Installation
    • Requirements
      • Windows requirements
      • Linux requirements
      • MacOS requirements
    • Quickstart
    • Advanced
      • Windows installation
      • Linux installation
      • MacOS installation
  • Modules
    • Module installation
    • Module update
    • Module settings
      • Global settings
        • brew settings
        • chocolatey settings
        • env settings
        • msys2 settings
        • nix settings
        • scoop settings
        • vscode settings
        • zeal settings
    • Modules list
      • Ansible
      • Bash
      • C / C++
      • C#
      • Custom
      • Deepcode
      • Docker
      • Fonts
      • Git
      • Go
      • HTML
      • Java
      • JavaScript / TypeScript
      • Markdown
      • Perl
      • PHP
      • Platformio
      • PowerShell
      • Puppet
      • Python2
      • Python3
      • Remote
      • Rest
      • ReStructuredText
      • Ruby
      • Saltstack
      • VSCode
    • Custom modules
  • Structure
    • apps
    • conf
      • saltstack
        • conf-offline
        • conf
        • pillar
        • states
    • tools
      • env
      • install
      • link
      • update
      • vscode
      • vscode-anywhere
  • Tutorials
    • Youtube tutorials
  • Release notes
    • V2
      • V2.0.0
    • V1
  • FAQ
Powered by GitBook
On this page
  • About
  • Installation
  • Requirements
  • Linux requirements
  • VSCode
  • VSCode extensions
  • VSCode settings
  • VSCode keybindings
  • Software
  • Windows software
  • Linux software
  • Documentation
  • VSCode-Anywhere
  • Environment
  • Specific settings

Was this helpful?

  1. Modules
  2. Modules list

Ruby

PreviousReStructuredTextNextSaltstack

Last updated 4 years ago

Was this helpful?

About

is an interpreted, high-level, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan.

Installation

vscode-anywhere:
    ruby:
        enabled: True

Requirements

Linux requirements

VSCode

VSCode extensions

rebornix.Ruby

castwide.solargraph

connorshea.vscode-ruby-test-adapter

kaiwood.endwise

bung87.rails

This extension will be installed only if rails is enabled.

shanehofstetter.rails-i18n

This extension will be installed only if rails is enabled.

aki77.rails-routes

This extension will be installed only if rails is enabled.

jemmyw.rails-fast-nav

This extension will be installed only if rails is enabled.

vortizhe.simple-ruby-erb

This extension will be installed only if rails is enabled.

karunamurti.haml

This extension will be installed only if rails is enabled.

aki77.haml-lint

This extension will be installed only if rails is enabled.

VSCode settings

Global settings

{
  "ruby.lint": {
    "reek": true,
    "rubocop": false,
    "ruby": true,
    "fasterer": true,
    "debride": true,
    "ruby-lint": true
  },
  "ruby.codeCompletion": false,
  "ruby.format": false,
  "ruby.intellisense": false,
  "solargraph.autoformat": true,
  "solargraph.hover": true,
  "solargraph.completion": true,
  "solargraph.diagnostics": true,
  "solargraph.formatting": true
}

Windows settings

{
  "ruby.interpreter.commandPath": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\ruby\\current\\bin\\gem.cmd",
  "solargraph.commandPath": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\ruby\\current\\gems\\bin\\solargraph.bat",
}

Assuming you have installed in the default directory C:\VSCode-Anywhere.

If rails is set to True:

{
  "hamlLint.executablePath": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\ruby\\current\\gems\\bin\\haml-lint.bat"
}

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux settings

{
  "ruby.interpreter.commandPath": "/home/linuxbrew/.linuxbrew/bin/gem",
  "solargraph.commandPath": "/home/linuxbrew/.linuxbrew/bin/solargraph"
}

If rails is set to True:

{
  "hamlLint.executablePath": "/home/linuxbrew/.linuxbrew/bin/haml-lint"
}

VSCode keybindings

Software

Windows software

scoop

Theridk install 3command will be executed after installing ruby.

Linux software

brew

Documentation

VSCode-Anywhere

Environment

Windows environment

GEM_HOME: C:\VSCode-Anywhere\apps\scoop\apps\ruby\current\gems
GEM_PATH: C:\VSCode-Anywhere\apps\scoop\apps\ruby\current\gems
PATH: C:\VSCode-Anywhere\apps\scoop\apps\ruby\current\bin

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux environment

GEM_HOME: /home/myuser/VSCode-Anywhere/apps/vscode-anywhere/ruby
GET_PATH: /home/myuser/VSCode-Anywhere/apps/vscode-anywhere/ruby
PATH: /home/myuser/VSCode-Anywhere/apps/vscode-anywhere/ruby/bin

Assuming you have installed in the directory /home/myuser/VSCode-Anywhere.

Specific settings

rails

vscode-anywhere:
  enabled: True
  rails: True

gem

  • pkgs: name of the packages to install

    • enabled: True to enable, False to skip (default to False)

    • version: the version of the gem package

  • opts

opts is not mandatory but allows to pass additional arguments.

Global opts packages settings:

  • gem:pkgs:opts:global: allow passing arguments to all gem packages when installing, updating, or uninstalling a package

Specific opts packages settings:

  • gem:pkgs:<mypkg>:opts:global: allow passing arguments to <mypkg> gem package when installing, updating, or uninstalling the package

  • global:

vscode-anywhere:
  ruby:
    enabled: True
    gem:
      opts:
        global: {}
        install:
          rdoc: True
          ri: True
        update:
          rdoc: True
          ri: True
        uninstall: {}
      pkgs:
        asdf:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        minitest:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rubyfmt:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rufo:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rspec:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rspec-core:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rvm:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        standard:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        yard:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rdoc:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        fastri:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        pkg-config:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        nokogiri:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rubygems-update:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        ruby-debug-ide:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        debase:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        rcodetools:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        reek:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        fasterer:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        debride:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        ruby-lint:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        solargraph:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}

If rails is set to True, the following gems will be added:

vscode-anywhere:
  ruby:
    enabled: True
    gem:
      pkgs:
        rails:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
        haml_lint:
          enabled: True
          opts:
            install: {}
            update: {}
            uninstall: {}
    • Windows:

vscode-anywhere:
  ruby:
    enabled: True
    gem:
      opts:
        global:
          gem_bin: C:\VSCode-Anywhere\apps\scoop\apps\ruby\current\bin\gem.cmd

Assuming you have installed in the default directory C:\VSCode-Anywhere.

  • Linux:

vscode-anywhere:
  ruby:
    enabled: True
    gem:
      opts:
        global:
          gem_bin: /home/linuxbrew/.linuxbrew/bin/gem

Change enable from False to True in the ruby section (cf ).

You can also take a look at the .

Solargraph is compiled with and brew needs the native gcc package installed on your Linux distribution. If you haven't the native gcc package installed, it will fail to compile.

This provides enhanced Ruby language and debugging support for Visual Studio Code.

is a language server that provides IntelliSense, code completion, and inline documentation for Ruby.

This allows to run your Ruby tests.

This allows to run your Ruby tests.

This allows Ruby on Rails support in VSCode.

This is a Rails i18n helper.

This is a definition and completion provider for Rails Routes.

This allows Navigation in Rails.

This provides a simple Ruby and ERB language, code snippets and ERB tag helper support for Visual Studio Code without messing with linting or debugging.

This provides haml support, with parentheses coloring, auto-close parentheses, brackets, curly braces, quote, double quote, backtick, ruby interpolations, etc.

This provides a haml linter.

No .

ridk will install all dependencies for compiling ruby modules by installing some packages.

Enable settings / modules for (False by default).

Allow installing .

Extra args can be arguments described in the or can be .

pm:pkgs:opts:install: allow passing arguments to all gem packages when installing a package (cf )

gem:pkgs:opts:update: allow passing arguments to all gem packages when updating a package (cf )

gem:pkgs:opts:uninstall: allow passing arguments to <mypkg> gem packages when uninstalling the package (cf )

gem:pkgs:<mypkg>:opts:install: allow to pass arguments to <mypkg> gem packages when installing the package (cf )

gem:pkgs:<mypkg>:opts:update: allow to pass arguments to <mypkg> gem packages when updating the package (cf )

gem:pkgs:<mypkg>:opts:uninstall: allow to pass arguments to <mypkg> gem packages when uninstalling the package (cf )

module installation
VSCode-Anywhere ruby module configuration
brew
extension
Solargraph
extension
extension
extension
extension
extension
extension
extension
extension
extension
keybindings
ruby
msys2
ruby
make
gcc
Ruby
Ruby_2
ruby on rails
ruby gems
Saltstack gem states
global Saltstack arguments
states.gem.installed
states.gem.installed
states.gem.removed
states.gem.installed
states.gem.installed
states.gem.removed
Ruby