Skip to content

Creation declaration/definition that targets a new file (or an empty one) has 2 extra newlines if clang-format isn't used #10164

Closed as not planned

Description

In test.h, do Create Declaration/Definition on

void func();

with an empty test.cpp.

Bug: The result has 2 extra newlines:

#include "test.h"



void func()
{
}

It's possible the root cause issue might result in other bugs, not sure though.

Activity

  1. changed the title [-]Creation declaration/definition that targets a new file (or an empty one) has 2 extra newlines[/-] [+]Creation declaration/definition that targets a new file (or an empty one) has 2 extra newlines if clang-format isn't used[/+] on Nov 29, 2022
  2. sean-mcmanus commented on Nov 29, 2022

    @sean-mcmanus
    ContributorAuthor

    This got fixed in 1.13.5 (pre-release, release candidate): https://github.com/microsoft/vscode-cpptools/releases/tag/v1.13.5, but only if clang-format is used....I've updated the title to reflect this.

  3. bobbrow commented on Mar 19, 2026

    @bobbrow
    Contributor

    We’re closing this as not planned.
    This issue has been inactive for a long time, and we will be unable to investigate and address it in the foreseeable future.

  4. locked and limited conversation to collaborators on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions