Ruby

About

Rubyarrow-up-right 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

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

circle-info

Requirements

Linux requirements

Solargraph is compiled with brewarrow-up-right 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.

VSCode

VSCode extensions

rebornix.Ruby

This extensionarrow-up-right provides enhanced Ruby language and debugging support for Visual Studio Code.

castwide.solargraph

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

connorshea.vscode-ruby-test-adapter

This extensionarrow-up-right allows to run your Ruby tests.

kaiwood.endwise

This extensionarrow-up-right allows to run your Ruby tests.

bung87.rails

This extensionarrow-up-right allows Ruby on Rails support in VSCode.

circle-info

This extension will be installed only if rails is enabled.

shanehofstetter.rails-i18n

This extensionarrow-up-right is a Rails i18n helper.

circle-info

This extension will be installed only if rails is enabled.

aki77.rails-routes

This extensionarrow-up-right is a definition and completion provider for Rails Routes.

circle-info

This extension will be installed only if rails is enabled.

jemmyw.rails-fast-nav

This extensionarrow-up-right allows Navigation in Rails.

circle-info

This extension will be installed only if rails is enabled.

vortizhe.simple-ruby-erb

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

circle-info

This extension will be installed only if rails is enabled.

karunamurti.haml

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

circle-info

This extension will be installed only if rails is enabled.

aki77.haml-lint

This extensionarrow-up-right provides a haml linter.

circle-info

This extension will be installed only if rails is enabled.

VSCode settings

Global settings

Windows settings

circle-info

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

If rails is set to True:

circle-info

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

Linux settings

If rails is set to True:

VSCode keybindings

No keybindingsarrow-up-right.

Software

Windows software

scoop

circle-check

Linux software

brew

Documentation

VSCode-Anywhere

Environment

Windows environment

circle-info

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

Linux environment

circle-info

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

Specific settings

rails

Enable settings / modules for ruby on railsarrow-up-right (False by default).

gem

Allow installing ruby gemsarrow-up-right.

  • 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.

Extra args can be arguments described in the Saltstack gem statesarrow-up-right or can be global Saltstack argumentsarrow-up-right.

Global opts packages settings:

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

  • pm:pkgs:opts:install: allow passing arguments to all gem packages when installing a package (cf states.gem.installedarrow-up-right)

  • gem:pkgs:opts:update: allow passing arguments to all gem packages when updating a package (cf states.gem.installedarrow-up-right)

  • gem:pkgs:opts:uninstall: allow passing arguments to <mypkg> gem packages when uninstalling the package (cf states.gem.removedarrow-up-right)

Specific opts packages settings:

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

  • gem:pkgs:<mypkg>:opts:install: allow to pass arguments to <mypkg> gem packages when installing the package (cf states.gem.installedarrow-up-right)

  • gem:pkgs:<mypkg>:opts:update: allow to pass arguments to <mypkg> gem packages when updating the package (cf states.gem.installedarrow-up-right)

  • gem:pkgs:<mypkg>:opts:uninstall: allow to pass arguments to <mypkg> gem packages when uninstalling the package (cf states.gem.removedarrow-up-right)

  • global:

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

    • Windows:

circle-info

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

  • Linux:

Last updated