microsoft / microsoft/vscode-cpptools
Newline after an auto-closing } doesn't trigger formatting with vcFormat style formatting
Open
Nobody has claimed this yet.
bug
Feature: Code Formatting
insiders
Language Service
Works in VS
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
With vcFormat and formatOnType, type
while(true){
that will trigger an auto }, and then hit enter.
Bug: The result is while(true){ instead of while (true) { (which works in VS).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VS Code using vcFormat and formatOnType: type a while condition with an auto-closed brace, then press Enter. Investigate the formatting path triggered by that newline; done when the result is formatted as while (true) { rather than while(true){.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100