mzruya / vscode-copy-ruby-reference

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Rust 77.6%Language:TypeScript 21.2%Language:Ruby 1.2%