Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

| Marketplace
Sign in
Visual Studio Code>Programming Languages>RailsNew to Visual Studio Code? Get it now.

Rails

周鹏

|
290,671 installs
| (7) | Free
Ruby on Rails support for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rails

Join the chat at https://gitter.im/vscode-rails/Lobby

Ruby on Rails support for Visual Studio Code

notice: in order to make this extension work you need

  • open vscode with root of your project
  • your project root has Gemfile and contains gem rails

Features

  • Ruby on Rails "Asset Helpers" and "Tag Helpers" snippets.
  • .erb syntax highlights.
  • Navigation between related files through command.
  • Go to Definition.
  • View path suggestion 、Model's static method suggestion and Model's field suggestion.
  • Open online document to the side through command.

Snippets

feature X

Navigation between related files.

screenshot

Default keybinding

Navigation

  • Alt + .
  • Opt + . (on Mac)

Open online document to the side

  • Alt + F1
  • Opt + F1 (on Mac)

Configuration

formatOnSave:

rails.editor.formatOnSave and rails.editor.[html.erb].formatOnSave ,rails.editor.[css.erb].formatOnSave, rails.editor.[scss.erb].formatOnSave

Known Issues

This extension is not fully implemented form_helpers of rails edge version ,exclude "select" families,"fields_for". Form Helpers

TODO

  • [ ] collect most popular rails version symbols instead just one version
  • [ ] performance

Donate

paypal

buy me a coffee

Contribution

This extension made by mine free time,contributions are welcome!


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft