Giter VIP home page Giter VIP logo

copy-ruby-member-reference's Introduction

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 Issues

Some class method definitions are not understood by the extension and might be copied as instance methods, these patterns include:

  • extend self
  • module_function

Parsing currently relies on proper indentation levels.

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.

copy-ruby-member-reference's People

Contributors

ricobl avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.