Skip to content

autoplace semicolon (after class, struct, enum definitions) #3087

@oktonion

Description

@oktonion

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10, latest Ubuntu etc...
  • VS Code Version: 1.30.2
  • C/C++ Extension Version: 0.21.0
  • Other extensions you installed (and if the issue persists after disabling them): none

So the suggestion is to auto place semicolon after class, struct, enum and union definition. Since we have already autocompletion for the brackets, when struct A {| completes to struct A{ | } why not to put a semicolon after brackets to complete class, struct etc. definition like struct A{ | };. It really bugs me to put semicolon every time at the end of definition.

To Reproduce

  1. Type struct A {|
  2. Auto complete will do its job: struct A{ | }
  3. Observe error squiggles - missing semicolon after struct definition!
  4. Put semicolon by hand

Expected behavior
Autocomplete with semicolon at the end of class, struct, enum and union definition.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions