microsoft / microsoft/vscode-cpptools

Add support for the Extract Variable refactoring

Open
#10,930 8 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I've filed a VS request at https://developercommunity.visualstudio.com/t/C:-Add-Extract-Variable-refactoring/10357919

"Extract to constant (field)" or "Extract to constexpr (field)" might be possibilities in the future too (not sure if those would need to be tracked separately though).

Our previous issue is at https://github.com/microsoft/vscode-cpptools/issues/1162, but that got changed to track only Extract Function/Method.

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 with the linked Visual Studio Developer Community request and the previous vscode-cpptools issue 1162, then compare the existing Extract Function/Method tracking with the requested Extract Variable support. Done means the extension supports Extract Variable refactoring; the issue does not name files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.