Skip to content

vscode rails extension,Ruby On Rails "Asset Tag Helpers" and "Form Helpers snippets,.erb syntax highlights,related files Navigation,Go to Definition.

License

Notifications You must be signed in to change notification settings

bung87/vscode-rails

Repository files navigation

Rails

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

Ruby on Rails support for Visual Studio Code

Notice: In order for this extension to work, you must

  • Open vscode at the root folder of your project.
  • Have a Gemfile containing gem rails, at your project root.

Features

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

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

The 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 of just one version
  • performance

Donate

paypal

Contribution

This extension is made by me during my free time. Contributions are welcome!


Enjoy!

About

vscode rails extension,Ruby On Rails "Asset Tag Helpers" and "Form Helpers snippets,.erb syntax highlights,related files Navigation,Go to Definition.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published