[Ruby] I want to do a method jump!

Introduction

Environment macOS Catalina 10.15.5

I want to do a method jump so that when I read the source code written by another person in Ruby, I can easily find the definition location of the method, so I will write down the method I arrived at after trying various things.

I mainly used Atom as a text editor, but I tried various methods of jumping Ruby code with Atom, but it didn't work.

Conclusion Easy to use VS Code

It was decided that

Installation procedure

1. Download VS Code here

https://azure.microsoft.com/ja-jp/products/visual-studio-code/

2. Japanese localization

--Select view from the menu bar --Select command palette --Select configure display language --select install additional language --Find the package of Japanese Language Pack for Visual Studio Code --Select configure display language again --Select ja --VSCode restart

3. Install the package Ruby

You can search in the extension search box

4. Enable the jump function

Open the settings of the installed Ruby extension Ruby: Changed Intellisense from false to rubylocate

5. How to do method jump

Hold down ⌘ and click the method you want to jump to to the definition location!

It took about 15 minutes so far, so it was very easy!

Recommended Posts

[Ruby] I want to do a method jump!
I want to call a method of another class
I want to call a method and count the number
I want to create a Parquet file even in Ruby
I want to develop a web application!
I want to write a nice build.gradle
I want to write a unit test!
I want to do team development remotely
I want to add a browsing function with ruby on rails
[Ruby] I want to put an array in a variable. I want to convert to an array
Why do I have to do a "method"? ~ "Main only" would have worked ~
I want to sort by tab delimited by ruby
I want to simply write a repeating string
I want to design a structured exception handling
I want to get the value in Ruby
I want to do something like "cls" in Java
I made a method to ask for Premium Friday
I want to use a little icon in Rails
I want to monitor a specific file with WatchService
I want to define a function in Rails Console
[Swift] I want to do something like C's sprinftf
I want to call the main method using reflection
I want to add a reference type column later
I want to click a GoogleMap pin in RSpec
[Rough commentary] I want to marry the pluck method
I want to connect to Heroku MySQL from a client
I want to create a generic annotation for a type
I want to add a delete function to the comment function
I want to convert characters ...
[Ruby] I want to make an array from a character string with the split method. And vice versa.
How to create a method
Rspec: I want to test the post-execution state when I set a method on subject
[Ruby] I want to make a program that displays today's day of the week!
[Java] I want to convert a byte array to a hexadecimal number
I want to find a relative path in a situation using Path
I want to implement a product information editing function ~ part1 ~
I want to perform high-speed prime factorization in Ruby (ABC177E)
I want to make a specific model of ActiveRecord ReadOnly
I want to make a list with kotlin and java!
I want to make a function with kotlin and java!
I want to create a form to select the [Rails] category
I want to use the sanitize method other than View.
Even in Java, I want to output true with a == 1 && a == 2 && a == 3
I want to give a class name to the select attribute
I want to use FireBase to display a timeline like Twitter
[Ruby] I want to reverse the order of the hash table
[Ruby / Rails] What to do when NoMethodError appears when using a destructive method such as filter!
I want to Flash Attribute in Spring even if I set a reverse proxy! (do not do)
Swift: I want to chain arrays
Ruby: I made a FizzBuzz program!
[Ruby] Method to count specific characters
I want to use FormObject well
I want to convert InputStream to String
[Ruby] How to use any? Method
I tried to explain the method
I want to docker-compose up Next.js!
How to use Ruby inject method
I want to recursively search for files under a specific directory
I want to make a button with a line break with link_to [Note]
Webpack and webpacker I want to tell Ruby people right now
I want to use swipeback on a screen that uses XLPagerTabStrip