mark-wiemer-org / ahkpp

AutoHotkey Plus Plus (AHK++) - AutoHotkey v1 and v2 support for VS Code
https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus
Other
152 stars 10 forks source link

Wrong indentation: press Enter after condition-block in If-statement #404

Open helperman opened 1 year ago

helperman commented 1 year ago

Description

Statement indented one level more than expected if press Enter after condition-block in If-statement. I know there are several ways to format brakets in if-statement. I think it should be a choice of preferences (i.e. configurable in settings). I prefer .NET-style.

0000000414

Expected formatted output snippet

I prefer .NET-style:

if (hello)
{
    <input caret is here>
}

Actual formatted output snippet

if (hello)
    {
        <input caret is here>
    }

Additional context

Hope it's not related with similar issue: #403