Skip to content

Indentation not correct when in block #27

@randomizedthinking

Description

@randomizedthinking

The indentation of the powershell script is not correct when in braces blocks. For instance, the following lines are correct:

Write-Host "line 1"
Write-Host "line 2"

While, if they are inside a pair of braces, when use = to indent the code block, the outcome becomes:

If ($value -gt 0)
{
    Write-Host "line 1"
        Write-Host "line 2"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions