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.
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.
Go here and click "Install".
- Set up a rust development environment:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone the repo:
> git clone https://github.com/mzruya/vscode-copy-ruby-reference.git
- 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