Skip to content

Make editor.autoClosingBrackets smarter? #4567

@o-l-a-v

Description

@o-l-a-v

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

Is there any way to make the auto closing bracket functionality of VSCode any smarter for PowerShell?

With both

"[powrshell]": {
  "editor.autoClosingBrackets": "always"
}

and

"[powrshell]": {
  "editor.autoClosingBrackets": "languageDefined"
}

this functionality is not very helpful. Example, say you've created:

Write-Output -InputObject 'Test'

Now you find out you want the input object inside paranthesis, and start with the (. editor.autoClosingBrackets does this:

Write-Output -InputObject ()'Test'

I'm used to PowerShell ISE, so I'll just turn off editor.autoClosingBrackets for now.

Proposed Design

No response

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