microsoft / microsoft/vscode-cpptools

Go to definition of Constructor

Open
#6,333 6 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Feature: Go to Definition Language Service Visual Studio
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Hi, I was not able to find any documentation about this. Is it possible to jump to the constructor of a class? I tried several ways, F12 and Ctrl+Click on variable, on Classname (before variable), on parenthesis, inside of parenthesis. Nothing worked.

Everything else works quite well. I was just wondering if there is an option to jump to correct constructor of the class. Current workaround: Jump to definition of class and search for (correct if it has overloads) constructor.

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

Reproduce the reported behavior using F12 and Ctrl+Click on a C++ constructor call, including a class with overloaded constructors. Compare the current class-definition navigation with the requested constructor navigation, and consider the work complete when the correct constructor can be opened directly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
developer-experience, tooling
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.