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.
Branch: dev
Clone or download
Pull request Compare This branch is even with bung87:dev.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
.vscode
bin
images
snippets
src
syntaxes
test
.gitignore
.vscodeignore
CHANGELOG.md
LICENSE
README.md
language-configuration-erb.json
package-lock.json
package.json
rails.png
tsconfig.json
vsc-extension-quickstart.md

README.md

Rails

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

Ruby on Rails support for Visual Studio Code

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)

Known Issues

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

Development

About current stage

Current stage of this extension,aims for using simple regular expression to implements intelligent completion 、"go to definition" and using glob pattern for file navigation in project source files.The lack of variable's and instance method call's definition and completion may implements in next stage.

Notice: Since I'm not a regex pro and rails pro these codes of current stage may needs improvement.will leave it to contributors until I really have plenty of free time.I will use mine free time to merge PRs if has any.

about testing: Manually testing in 2 exsits rails projects.

Todo for next stage

The next stage of this extension will fill the lack of previews stage may implements a long running process for collection all symbols(module,class,method and etc) in gems for completion and "go to definition",detect ruby env and may interact with vscode-ruby ,caching all completion and definition infomations.

Contribution

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


Enjoy!

You can’t perform that action at this time.