Skip to content

A VSCode extension to copy the reference to a ruby constant definition.

License

Notifications You must be signed in to change notification settings

mzruya/vscode-copy-ruby-reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy ruby reference

A simple VSCode extension that allows you to right click on a constant definition and copy a reference to it. Unlike similar extensions, this does not use regular expressions and instead walks the Ruby AST, producing much more accurate results.

How to use?

Place your caret on the desired constant definition, Then using the right click context menu select the "Ruby: copy reference" command. The fully qualified name of the constant will be copied to your clipboard.

output

How to install?

Go here and click "Install".

How to build?

  1. Set up a rust development environment:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Clone the repo:
> git clone https://github.com/mzruya/vscode-copy-ruby-reference.git
  1. Build and package an extension for a target architecture: (valid options are: darwin-arm64, darwin-x64, linux-x64, win32-x64)
> cd vscode-copy-ruby-reference/vscode-extension
> npm run build-and-package-darwin-arm64

About

A VSCode extension to copy the reference to a ruby constant definition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published