rust-lang / rust-lang/rust-analyzer

Support copying the name of the item under the cursor

Open
#9,880 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

S-unactionable
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Many functions, types, or static variables have a name that I can refer to, something like mod_1::Type2::function_3, etc. I hope rust-analyzer can support copying this name to the clipboard, so it is easy for users to refer to the corresponding items.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing rust-analyzer's handling of the item under the cursor for functions, types, and static variables, then identify how an editor action could expose the item's name to the clipboard. The work is done when users can invoke the action and copy the corresponding item name, including qualified names such as mod_1::Type2::function_3.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.