Skip to content

Automatic indentation within braces does not occur if comment succeeds opening brace #118929

Description

  • VS Code Version: 1.54.2
  • OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

  1. Create any construction in your code that requires curly braces (e.g. if statement).
  2. Place single line comments "//" after the opening curly brace.
  3. Press enter, and notice that your new line is not indented.
    image

Does this issue occur when all extensions are disabled?: Yes

Activity

  1. vscodebot commented on Mar 14, 2021

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. added
    editor-autoindent
    polish
    on Oct 14, 2021
  3. added
    unreleased
    on Dec 6, 2024
  4. added
    insiders-released
    and removed
    unreleased
    on Dec 11, 2024
  5. locked and limited conversation to collaborators on Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

cc++editor-autoindentinsiders-releasedpolish

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions