Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Ruby Copy ReferenceNew to Visual Studio Code? Get it now.
Ruby Copy Reference

Ruby Copy Reference

Michal Ciebiada

|
1,509 installs
| (0) | Free
Extension that lets you copy reference to class/constant/method in Ruby
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ruby Copy Reference

Minimalistic extension inspired by RubyMine. It lets you copy the whole path to the class/constant/method in Ruby

For instance:

module Foo
  class Bar < Baz
    class Bebop
      SPIKE = 'spike'
    end
  end
end

Executing copyReference with the cursor at Bebop will put Foo::Bar::Bebop into the system clipboard. If cursor is at SPIKE it will copy Foo::bar::Bebop::SPIKE

This extension contributes the following commands:

  • ruby.copyReference: copies reference to the element under cursor

Default keybinding is: cmd+shift+alt+c

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft