Skip to content

Add an option to insert a new line before crully braces #405

@czhang03

Description

@czhang03

Please fill in these details so that we can help you!

System Details

  • Operating system name and version: Windows 10 Version 1607, build 14393.576
  • VS Code version: 1.8.0
  • PowerShell extension version: 0.8.0
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.14393.576
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.576
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

Is it possible for an option to put a new line before curly braces (like "javascript.format.placeOpenBraceOnNewLineForFunctions": true)


for regular coding

if (condition) {<ret>}

will turn to

if (condition) 
{
    <cursor here>
}

for snippet

if<tab>

will give

if (condition)
{
    
}

instead of

if (condition) {
    
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions