View Code? Open in Web Editor
NEW
vscode extension to navigate in Ruby on Rails projects
Home Page: https://marketplace.visualstudio.com/items?itemName=LukasPol.rails-go-to&ssr=false#overview
License: MIT License
JavaScript 0.89%
TypeScript 97.34%
Ruby 1.78%
vscode-rails-go-to's Introduction
vscode-rails-go-to's People
Contributors
Watchers
vscode-rails-go-to's Issues
We have 2 commands to open files: Open Class File
and Open Relationships Model File
. We could create a new keybinding to call both commands.
Name: Open This File
New Keybinding:
MAC : CMD + .
Linux/Windows : CTRL + .
Select the action and go to the view file.
We need to add tests for the existing commands to ensure the proper functioning of the extension.
Tarefas
This new command need open the relationships template file when executed with Keybinding.
Command name: Rails GoTo: Open the RelationShips model file;
Keybinding: ALT + SHIFT + R;
Tarefas:
Select the method and go to the method definition.
Class: in file person.rb
class Person
def age
20
end
end
code:
Person.age
Doing Keybinding in age, go to the file person.rb, line 2
The 'Open File Class' command only works for files within the 'app' folder. If a class is defined in a folder like 'lib', for example, the command won't find the file.
Tarefas:
In case of plural ending in es
it is not taking the singular correctly, as the command only removes the last s
from the word and does not look at the es
.