I am a really newcomer for both ruby and visual studio code. I have installed ruby
and ruby-debug-ide
, and I can run or debug the ruby in vscode already. Now I would like to install the ruby-linter extension, but it doesn't work. For example, when I write Random.r
it shows nothing which is expected to be rand
, anyone can help me, thanks a lot.
Asked
Active
Viewed 6,631 times
4

Ryan
- 345
- 3
- 11
1 Answers
2
I'd recommend you to install the ruby extension on Visual Studio Code and follow the instructions on the documentation to set it up, it works properly both on Windows and Linux, provided that you have Ruby installed.
The extension can be configured for debugging with ruby_debug_ide and debase that can be installed with ...
$ sudo gem install ruby-debug-ide
$ sudo gem install debase
...linting can be provided by ruby itself, adding on Visual Studio Code settings file that can be accessed by typing "CTRL+P" > Settings...
"ruby.lint": {
"ruby": true,
}
...and intellisense can be provided by rcodetools or solargraph that can be installed with...
$ sudo gem install rcodetools
$ sudo gem install solargraph

dandev486
- 4,143
- 2
- 14
- 22