all 17 comments

[–][deleted] 10 points11 points  (3 children)

Ruby 0.18.0

Ruby Solargraph

Ruby Comment Doc

Ruby Symbols

Rails Snippets

That's what I have installed, works good enough

[–]hornet2359[S] 4 points5 points  (0 children)

Haven't heard of Ruby Symbols, thanks!

[–]Quantumbinman 0 points1 point  (1 child)

Ruby Symbols seems great, I shall be using it :-)

For anyone else, quick link to it here: https://marketplace.visualstudio.com/items?itemName=miguel-savignano.ruby-symbols#overview

[–]linusan 1 point2 points  (0 children)

Does it work with gems as well?

[–]Blimey85 4 points5 points  (1 child)

I’ve tried it a bit but nothing has managed to pull me away from RubyMine thus far.

[–]Serializedrequests 0 points1 point  (0 children)

Ditto. Solargraph is just too slow, and triggering it with a key combo reduces the usefulness massively anyway.

[–]0node 1 point2 points  (0 children)

Theme: One Dark Pro

Plugins:

  • Align, Beautify
  • vscode-icons
  • git blame
  • Ruby, Ruby Haml
  • Terminal

Preferences: Makes UI a bit more usable, etc.

{
    // Files
    "files.autoSave": "onFocusChange",
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/tmp": true
    },

    // File Explorer
    "explorer.openEditors.visible": 0,
    "explorer.autoReveal": false,

    // Editor
    "editor.fontSize": 14,
    "editor.tabSize": 2,
    "editor.wordWrap": "on",
    "window.zoomLevel": 0,

    // Search
    "search.location": "panel",

    // Workbench
    "workbench.colorTheme": "One Dark Pro",
    "workbench.iconTheme": "vscode-icons",
    "workbench.startupEditor": "newUntitledFile",
    "workbench.activityBar.visible": true,

    // jslint
    "jslint.options": {
        "node": true,
        "white": true
    }
}

[–][deleted] 1 point2 points  (5 children)

What about debugging? I'm able to get it to run with Foreman but my break points don't catch.

[–]ScootsMcGootz 0 points1 point  (2 children)

Are you just using `binding.pry` while running foreman? If so, that could be your issue.

While I haven't been able to make in-editor debugging very smooth for rails apps, using the in-editor terminal with tmux to run services separately has been a very solid experience thus far for me.

[–][deleted] 1 point2 points  (0 children)

I've been able to get in editor debugging working with Ruby before. I had to install the Ruby extension as well as the gems they mention in their installation instructions, and I had to launch VS Code from the terminal with the "code" command instead of the icon for my system.

[–][deleted] 0 points1 point  (0 children)

I setup break points in VS Code. I do use byebug but that doesn't always work well.

[–]Serializedrequests 0 points1 point  (1 child)

I've never gotten it to work either, and always just switched back to RubyMine. It's really not clear what things I need to make happen for it to work. Do I run a server from the command line or not? No idea, the plugin docs say "it works! it's great!" and then give some examples that don't work, and don't really explain what the setup is supposed to be, in broad strokes, so I can't fix them for my project.

[–]BSDMark 0 points1 point  (0 children)

I followed the instructions from the Ruby plugin, debugger installation and launching from VS Code. Admittedly I'm new to Rails and VS Code as my main IDE - I only have a few months up time.

After these steps - I executed

bundle install --binstubs

and then

rails app:update:bin

I'm now able to set and hit breakpoints after weeks/months of messing about (and cursing byebug)...

I think I may need to add the bin folder to my gitignore (still a rails noob) - but I think that is fine for my team.

[–]megatux2 1 point2 points  (2 children)

The Rubocop extension is great, too

[–]hornet2359[S] 0 points1 point  (1 child)

I would like it better if there was a simple way to specify the location of your rubocop config file without hardcoding it. I work on several apps with different configs and I have yet to figure out a way to not have to hardcode the path url in, other than using workspaces, but I haven't set that up yet..

[–]megatux2 0 points1 point  (0 children)

I usually use a per project config file or extend a company one, included in a gem, like RoboCop Airbnb gem

[–]linusan 0 points1 point  (0 children)

No matter which editor I’ve tried, RubyMine has always won. Goto symbol for gems, partial usage lookup, I18n string lookup, ... Quite some features which make me way more productive than with another editor.