Format Document inserts spaces between curly braces after point operator
See original GitHub issuePrerequisites
- 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:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No worries and I agree. The other one that you probably think of, which is on my list as well is #1580
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).