question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format Document inserts spaces between curly braces after point operator

See original GitHub issue

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

I have the following line: Add-Member -InputObject $computer -MemberType NoteProperty -Name LIRoom -Value $gld.{Custom.Büro} After Format Document it looks: Add-Member -InputObject $computer -MemberType NoteProperty -Name LIRoom -Value $gld. { Custom.Büro } which is syntactically false.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.1237
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1237
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.61.2
6cba118ac49a1b88332f312a8f67186f7f3c1643
x64

Extension Version

ms-vscode.powershell@2021.10.2

Steps to Reproduce

see above

Visuals

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bergmeistercommented, Nov 10, 2021

No worries and I agree. The other one that you probably think of, which is on my list as well is #1580

1reaction
andyleejordancommented, Nov 10, 2021

Thanks @bergmeister! My personal triage priority is any bug with destructive behavior (which has recently had some activity in the repo, but I can’t find it right now).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Curly braces autoformat whitespace issue
I'm using Visual Studio 2017. Below Tools > Options > Text Editor > C# > CodeStyle > Formatting there's an option called 'Insert...
Read more >
Add padding when pressing space between a pair of curly ...
When I type { to create a pair of curly braces: {} ...and then when I press space, I would like 2 spaces...
Read more >
Spacing and correct use of braces in equations
TeX inserts no extra space between objects of type mathord . ... examples -- in all cases, encasing the operators in curly braces...
Read more >
EditorConfig properties for C#: Spaces - JetBrains Rider
This page lists custom JetBrains Rider EditorConfig properties that you can use to configure formatting preferences, specifically, how to insert ...
Read more >
C# formatting options - .NET
When it's a block, don't indent the statement list and curly braces for a case in a switch statement. Default value, true. Code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found