Skip to content

Reformat Code for comments in select blocks #2848

@bt

Description

@bt
  • Plugin version (or commit hash): v0.13.1914

  • IDE name and version: IntelliJ Idea 2016.3

  • Java version: 1.8.0_112

  • OS name and version: macOS Sierra 10.12.1 (16B2659)

  • What are you trying to do?
    Using the Reformat Code feature in IntelliJ will cause comments in a select block to be indented incorrectly.

  • What would you expect to happen?
    Given the following code as an example:

select {
    case <-timer.C:
// Timer reached.
}

I'm expecting the code to be formatted as follows:

select {
    case <-timer.C:
        // Timer reached.
}
  • What happens?

However, the autoformatting will output it to the following:

select {
    case <-timer.C:
    // Timer reached.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions