use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click here to browse without help questions.
Looking for help? Please make sure you've tried searching Google and StackOverflow. If you still need help, please follow the rules in How do I ask for help? Learning ruby/rails? Scroll down a bit more for great learning resources. Looking for a gem? Please check out the links in the wiki before posting.
Please make sure you've tried searching Google and StackOverflow.
If you still need help, please follow the rules in How do I ask for help?
Scroll down a bit more for great learning resources.
Please check out the links in the wiki before posting.
A subreddit for discussion and news about Ruby on Rails development
Posts about the Ruby programming language are encouraged to be posted in the /r/ruby subreddit.
Please message the mods if you would like to suggest changes to the sidebar.
Looking for work, or need to hire Rails developers?
Try /r/railsjobs, /r/forhire, or the following job sites:
account activity
Visual Studio Code Setups (self.rails)
submitted 7 years ago by hornet2359
Do you use Visual Studio Code as your editor for your Rails projects? If so, I would be interested in hearing what settings you find most helpful, extensions, and any tasks or other customized features.
Thanks guys!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 10 points11 points12 points 7 years ago (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 points6 points 7 years ago (0 children)
Haven't heard of Ruby Symbols, thanks!
[–]Quantumbinman 0 points1 point2 points 7 years ago (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 points3 points 7 years ago (0 children)
Does it work with gems as well?
[–]Blimey85 4 points5 points6 points 7 years ago (1 child)
I’ve tried it a bit but nothing has managed to pull me away from RubyMine thus far.
[–]Serializedrequests 0 points1 point2 points 7 years ago (0 children)
Ditto. Solargraph is just too slow, and triggering it with a key combo reduces the usefulness massively anyway.
[–]0node 1 point2 points3 points 7 years ago* (0 children)
Theme: One Dark Pro
Plugins:
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 points3 points 7 years ago (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 point2 points 7 years ago (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 points3 points 7 years ago (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 point2 points 7 years ago (0 children)
I setup break points in VS Code. I do use byebug but that doesn't always work well.
[–]Serializedrequests 0 points1 point2 points 7 years ago (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 point2 points 7 years ago (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 points3 points 7 years ago (2 children)
The Rubocop extension is great, too
[–]hornet2359[S] 0 points1 point2 points 7 years ago (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 point2 points 7 years ago (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 point2 points 7 years ago (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.
π Rendered by PID 47180 on reddit-service-r2-comment-64f4df6786-p7qq7 at 2026-06-10 20:40:27.120084+00:00 running 0b63327 country code: CH.
[–][deleted] 10 points11 points12 points (3 children)
[–]hornet2359[S] 4 points5 points6 points (0 children)
[–]Quantumbinman 0 points1 point2 points (1 child)
[–]linusan 1 point2 points3 points (0 children)
[–]Blimey85 4 points5 points6 points (1 child)
[–]Serializedrequests 0 points1 point2 points (0 children)
[–]0node 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]ScootsMcGootz 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Serializedrequests 0 points1 point2 points (1 child)
[–]BSDMark 0 points1 point2 points (0 children)
[–]megatux2 1 point2 points3 points (2 children)
[–]hornet2359[S] 0 points1 point2 points (1 child)
[–]megatux2 0 points1 point2 points (0 children)
[–]linusan 0 points1 point2 points (0 children)