Skip to content

Code wrapped on multiple lines with backtick ` has weird indentation behavior when formatting file #335

@tuokri

Description

@tuokri

As demonstrated by this video, every time I hit the format hotkey, the wrapped lines starting with either " or ' are intended further by a single space.

Untitled.mp4

Example file:

param (
    [Parameter(mandatory = $true)]
    [string]$SteamCMDExePath
)

$Proc = Start-Process -FilePath "$SteamCMDExePath" `
    -ArgumentList "+force_install_dir", "$APP_PATH", `
    "+login", $STEAM_USERNAME, $STEAM_PASSWORD, `
    '"+app_update 480 validate"', `
    "+quit" `
    -NoNewWindow `
    -Wait `
    -PassThru

exit $Proc.ExitCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions