Ruby on Rails with Visual Studio Code

Paul Lonsdale
Aug 26, 2017 · 5 min read
Photo by Marcin Nowak on Unsplash

Theme

Photo by Caspar Rubin on Unsplash

Extensions

Photo by Ilya Pavlov on Unsplash

Tasks

{// See https://go.microsoft.com/fwlink/?LinkId=733558// for the documentation about the tasks.json format"version": "2.0.0","tasks": [{"taskName": "beautify","type": "shell","command": "htmlbeautifier ${relativeFile}","problemMatcher": [],"presentation": {"reveal": "never"}},{"taskName": "rubocop","type": "shell","command": "rubocop --auto-correct ${relativeFile}","problemMatcher": [],"presentation": {"reveal": "never"}},{"taskName": "rspec","type": "shell","command": "bundle exec rspec","problemMatcher": [],"presentation": {"reveal": "always"}},{"taskName": "rspec file","type": "shell","command": "bundle exec rspec ${relativeFile}","problemMatcher": [],"presentation": {"reveal": "always"}},{"taskName": "rails c","type": "shell","command": "bundle exec rails console","problemMatcher": [],"presentation": {"reveal": "always"}},{"taskName": "rails s","type": "shell","command": "bundle exec rails server","problemMatcher": [],"presentation": {"reveal": "always"}},{"taskName": "cap production deploy","type": "shell","command": "cap production deploy","problemMatcher": [],"presentation": {"reveal": "always"}},{"taskName": "configure","type": "shell","command": "gem install ruby-debug-ide:0.6.0 debase:0.2.2.beta10 rcodetools rubocop fastri htmlbeautifier --no-ri --no-rdoc","problemMatcher": [],"presentation": {"reveal": "always"}}]}

Further settings

{"files.autoSave": "onFocusChange","workbench.colorTheme": "Solarized Dark","atomKeymap.promptV3Features": true,"editor.multiCursorModifier": "ctrlCmd","editor.formatOnPaste": true,"editor.tabSize": 2,"editor.rulers": [80],"csscomb.preset": "/path/to/csscomb.json","editor.minimap.enabled": false,"ruby.lint": {"rubocop": {"lint": true,"rails": true}},"workbench.activityBar.visible": true,"telemetry.enableCrashReporter": false,"files.trimTrailingWhitespace": true,"search.exclude": {"**/.git": true,"**/node_modules": true,"**/bower_components": true,"**/tmp": true,"**/coverage": true,"**/log": true,"**/public/uploads": true},"files.exclude": {"**/.git": true,"**/.svn": true,"**/.hg": true,"**/CVS": true,"**/.DS_Store": true,"**/log": true}}
Photo by Markus Spiske on Unsplash

Closing thoughts

Paul Lonsdale

Written by

Dry-humoured, quick-witted lead Web Developer, who likes doing clever things with words, with a passion for anything web and tech related.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade