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

Copy Ruby Member Reference

Enrico Luz

|
206 installs
| (0) | Free
Copies full namespace path for references under the cursor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Ruby Member Reference

Allows copying the Ruby member reference under the cursor to the clipboard.

It has a simple built-in regex-based parser that supports most common scenarios: modules, classes, instance methods, class methods and constants.

Features

  • Copy Ruby Member Reference command: will copy the current reference to the clipboard.

Keyboard shortcut

No keyboard shortcut is provided at the moment to prevent conflicts with other extensions. Suggested usage is via the command palette, typically pressing Cmd+Shift+P / Ctrl+Shift+P and typing the command name.

Follow the keybindings documentation to map the copy-ruby-member-reference.copyReference command to your own keybinding.

Known limitations

To avoid additional dependencies or a language-server integration, parsing is built into the extension as a regex-based engine relying on proper indentation.

It won't identify references inside methods.

Release Notes

Please see the changelog.

Why another extension?

Other existing extensions wouldn't cover scenarios that I needed and I wanted to have some fun writing my own extension and also used the opportunity learn Typescript.

Development

Running tests

  • Open the debug viewlet (Ctrl+Shift+D or Cmd+Shift+D on Mac) and from the launch configuration dropdown pick Extension Tests.
  • Press F5 to run the tests in a new window with your extension loaded.
  • See the output of the test result in the debug console.

Releasing

  1. Bump version: npm version [patch|minor|major]
  2. Update the version in package.json
  3. Add release notes in CHANGELOG.md
  4. Commit and merge your branch to main
  5. Publish: npx vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft