microsoft / microsoft/vscode-cpptools

Automatically fold inactive regions

Open
#8,992 6 comments 26 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Type: Feature Request

The extension currently supports dimming inactive regions (#if, #ifdef, ...). Folding these regions is also already supported correctly.
I would like to suggest a feature that combines both of these to automatically fold inactive regions, as a command and on opening a file.
This is a duplicate of #5020, which was (perhaps incorrectly) marked as a duplicate of #407, which is now closed.

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

Review the existing inactive-region dimming and folding behavior in the extension, then compare issue #5020 and closed issue #407 for prior implementation context. Define the command and on-file-open behavior as acceptance criteria, and verify both paths in VS Code.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript, vscode
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.