Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to paste a file path with symbol to go to symbol in file #123809

Closed
mateja176 opened this issue May 13, 2021 · 5 comments
Closed

Allow to paste a file path with symbol to go to symbol in file #123809

mateja176 opened this issue May 13, 2021 · 5 comments
Labels
editor-symbols definitions, declarations, references feature-request Request for new features or functionality quick-open Quick-open issues (search, commands)

Comments

@mateja176
Copy link

mateja176 commented May 13, 2021

I often find myself needing to point another developer to a specific function or other symbol, which is frequently located in a file containing numerous other definitions. Usually, I would approach this by sending them a relative file path along with the symbol name. For example:

  • relative file path src/utils.js
  • symbol name capitalize

Equipped with this information they could:

  • copy the file path their clipboard
  • raise VSCode
  • execute Go to file command (usually bound to ctrl+e)
  • paste
  • press Enter
  • execute Go to symbol command (in my case it is bound to ctrl+shift+o)
  • type in the before mentioned symbol name

Instead it would be convenient if the Go to file command input could accept a path with a symbol simplifying the above steps. Alternatively, to avoid overloading Go to file a new command my be introduced, for example Go to symbol in file.

The syntax for the enhanced file path could be filePath@symbolName. In the context of the example above: src/utils.js@capitalize.

@vscodebot
Copy link

vscodebot bot commented May 13, 2021

@mateja176 mateja176 changed the title Go To File With Symbol Support Go To Symbol In File May 13, 2021
@chrmarti chrmarti assigned bpasero and unassigned chrmarti May 18, 2021
@bpasero
Copy link
Member

bpasero commented May 18, 2021

You can type this but you cannot just paste such a path.

@bpasero bpasero added editor-symbols definitions, declarations, references feature-request Request for new features or functionality quick-open Quick-open issues (search, commands) labels May 18, 2021
@bpasero bpasero removed their assignment May 18, 2021
@bpasero bpasero changed the title Go To Symbol In File Allow to paste a file path with symbol to go to symbol in file May 18, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-symbols definitions, declarations, references feature-request Request for new features or functionality quick-open Quick-open issues (search, commands)
Projects
None yet
Development

No branches or pull requests

4 participants
@bpasero @chrmarti @mateja176 and others