Title: New formatting preset: OTBS with `else` on a new line · Issue #2045 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: New formatting preset: OTBS with `else` on a new line · Issue #2045 · PowerShell/PSScriptAnalyzer
X Title: New formatting preset: OTBS with `else` on a new line · Issue #2045 · PowerShell/PSScriptAnalyzer
Description: Edit: Blocked, see #2045 (comment). Summary of the new feature From the "There is no One True Brace Style" discussion it seems a lot of people, including me, likes OTBS with else on a new line. PoshCode/PowerShellPracticeAndStyle#177 (co...
Open Graph Description: Edit: Blocked, see #2045 (comment). Summary of the new feature From the "There is no One True Brace Style" discussion it seems a lot of people, including me, likes OTBS with else on a new line. Pos...
X Description: Edit: Blocked, see #2045 (comment). Summary of the new feature From the "There is no One True Brace Style" discussion it seems a lot of people, including me, likes OTBS with else on a new...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2045
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New formatting preset: OTBS with `else` on a new line","articleBody":"Edit: Blocked, see \u003chttps://github.com/PowerShell/PSScriptAnalyzer/issues/2045#issuecomment-4016377821\u003e.\n\n**Summary of the new feature**\n\nFrom the \"There is no One True Brace Style\" discussion it seems a lot of people, including me, likes OTBS with `else` on a new line.\n\n* \u003chttps://github.com/PoshCode/PowerShellPracticeAndStyle/discussions/177#discussioncomment-6518163\u003e\n* \u003chttps://github.com/PoshCode/PowerShellPracticeAndStyle/discussions/177#discussioncomment-6518179\u003e\n\nIn `vscode-powershell` one can't use a preset and override a setting it defines. Thus getting this code style in VSCode currently, one have to use:\n\n```json\n{\n \"powershell.codeFormatting.preset\": \"Custom\"\n}\n```\n\nthen define all settings one by one.\n\n* \u003chttps://github.com/PowerShell/vscode-powershell/issues/5109\u003e\n\n**Proposed technical implementation details (optional)**\n\nAdd a new formatting preset for OTBS with `else` on a new line.\n\n**What is the latest version of PSScriptAnalyzer at the point of writing**\n\nv1.23.0\n\n","author":{"url":"https://github.com/o-l-a-v","@type":"Person","name":"o-l-a-v"},"datePublished":"2024-12-01T12:42:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2045/PSScriptAnalyzer/issues/2045"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87762fae-84d0-2bdc-af82-b0b00d5de568 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 915E:B2726:2A7CBBC:3D0987A:6A5904B0 |
| html-safe-nonce | 033c623205cc7cd9aab98742a4729586c32b7984a7a91ad9f32e961198235f88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTVFOkIyNzI2OjJBN0NCQkM6M0QwOTg3QTo2QTU5MDRCMCIsInZpc2l0b3JfaWQiOiI2OTAyNjY2MjQyNDM1OTg1MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b390b82321dcb1cd5082b3c6d5adc0db47ea026f2f7822ff4ba086a3ead334e0 |
| hovercard-subject-tag | issue:2709121702 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/2045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eae170838078ed1c1ad0a1da9ceffd385610d611c5ee79ef5177130ac5f3c9b7/PowerShell/PSScriptAnalyzer/issues/2045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eae170838078ed1c1ad0a1da9ceffd385610d611c5ee79ef5177130ac5f3c9b7/PowerShell/PSScriptAnalyzer/issues/2045 |
| og:image:alt | Edit: Blocked, see #2045 (comment). Summary of the new feature From the "There is no One True Brace Style" discussion it seems a lot of people, including me, likes OTBS with else on a new line. Pos... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | o-l-a-v |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9842457e8d7e3b2e1635a63af28da35614845510 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width