Giter Club home page Giter Club logo

vscode-rails's Introduction

rails

  • 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.

Features

feature X

Navigation between related files.

screenshot

Default keybinding

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

Known Issues

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

Todo List for 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.

List sort by priority.

  • avoid rails's go to definition.
  • controller's filters、actions and helpers go to definition.
  • model's go to definition.
  • model's field suggestion.
  • file path suggestion in controller and views etc.
  • controller's go to definition seaching with parents.

Todo List 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.

List sort by priority.

  • avoid ruby's std lib go to definition.
  • seaching definition in gems.

Contribution

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

Release Notes

0.7.0

rails helper go to definition and view path definition in views.

0.5.7

Support view path definition in ruby files and fix view path definition.

0.5.6

avoid rails's go to definition.

0.5.5

Support active record query suggestion.

0.5.4

Resolving unkown type of file and unkown pattern

0.5.3

Enhance controller‘s concerns、views、lib and models definition

0.5.0

Implementing controller‘s concerns、views、lib and models definition

0.4.0

Improving file search and complete spec and test file type.

0.3.0

Rails navigation taken from https://github.com/hjleochen/vscode-rails-nav

0.2.0

Taken grammers from https://github.com/craigmaslowski/vscode-erb

0.1.0

Initial release of vscode-rails


Enjoy!

vscode-rails's People

Contributors

bung87 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.